//下单减库存
var allObjData = {
    "uiModsList": [{
        name: "搜索",
        en: "search",
        id: "search",
        data: [{
                "name": "showAddCartBtn",
                "type": "bool",
                "title": "是否显示添加购物车",
                "value": 0
            },
            {
                "name": "showPrice",
                "type": "bool",
                "title": "是否显示价格",
                "value": 0
            },
            {
                "name": "showItemTitle",
                "type": "bool",
                "title": "是否显示标题",
                "value": 0
            },
            {
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否显示销量",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景色",
                "value": "#ffffff"
            },
            {
                "name": "borderColor",
                "type": "color",
                "title": "边框颜色",
                "value": "#cccccc"
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
        ]
    }, {
        name: "品牌Logo区",
        en: "storelog",
        id: "storelog",
        data: [
            // { "name": "color", "type": "color", "title": "背景颜色", "value": "#ffffff" },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
            {
                "name": "fontColor",
                "type": "color",
                "title": "文字颜色",
                "value": "#000000"
            },
            {
                "name": "image",
                "type": "image",
                "title": "背景图",
                "value": ""
            },
            {
                "name": "showMap",
                "type": "bool",
                "title": "显示地图",
                "value": 0
            },
            {
                "name": "height",
                "type": "number",
                "title": "地图高度",
                "value": 100,
                "max": 5000,
                "min": 50
            },
            {
                "name": "logoheight",
                "type": "number",
                "title": "logo高度",
                "value": 100,
                "max": 200,
                "min": 10
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
        ]
    }, {
        name: "店铺logo",
        en: "storeloginfo",
        id: "storeloginfo",
        data: [
            // { "name": "color", "type": "color", "title": "背景颜色", "value": "#ffffff" },
            {
                "name": "info1",
                "type": "string",
                "title": "描述",
                "value": ""
            },
            {
                "name": "info2",
                "type": "string",
                "title": "公告",
                "value": ""
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
            {
                "name": "fontColor",
                "type": "color",
                "title": "文字颜色",
                "value": "#000000"
            },
            {
                "name": "image",
                "type": "image",
                "title": "背景图",
                "value": ""
            },
            // { "name": "showMap", "type": "bool", "title": "显示地图", "value": 0 },
            // { "name": "height", "type": "number", "title": "地图高度", "value": 100, "max": 5000, "min": 50 },
            {
                "name": "logoheight",
                "type": "number",
                "title": "logo高度",
                "value": 90,
                "max": 200,
                "min": 10
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
        ]
    }, {
        name: "顶部栏",
        en: "topbar",
        id: "topbar",
        // ofpage: "config", //强制指定所属页面
        data: [{
                "name": "color",
                "type": "color",
                "title": "背景颜色",
                "value": "#f8f8f8"
            },
            {
                "name": "fontColor",
                "type": "color",
                "title": "文字颜色",
                "value": "#000000"
            },
            {
                "name": "title",
                "type": "string",
                "title": "顶部栏文字",
                "value": ""
            },
            {
                "name": "userset",
                "type": "bool",
                "title": "用户头像信息获取",
                "value": 0
            },
            {
                "name": "showsharebutton",
                "type": "bool",
                "title": "显示分享按钮",
                "value": 0
            },
            {
                "name": "hidehexiaocode",
                "type": "bool",
                "title": "隐藏核销小程序码",
                "value": 0
            },
        ]
    }, {
        name: "选择店铺",
        en: "choiceStore",
        id: "choiceStore",
        ofpage: "home", //强制指定所属页面
        data: [{
                "name": "color",
                "type": "color",
                "title": "背景颜色",
                "value": "#EBF0F6"
            },
            {
                "name": "fontColor",
                "type": "color",
                "title": "文字颜色",
                "value": "#ffffff"
            },
            {
                "name": "autoChoice",
                "type": "bool",
                "title": "是否开启自动切换最近门店",
                "value": 0
            },
        ]
    }, {
        name: "页面背景颜色",
        en: "pagebackground",
        id: "pagebackground",
        // ofpage: "config", //强制指定所属页面
        data: [{
            "name": "backgroundColor",
            "type": "color",
            "title": "背景颜色",
            "value": "#f2f2f2"
        }, ]
    }, {
        id: "catitems",
        name: "分类商品",
        en: "catitems",
        data: [{
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否显示销量",
                "value": 1
            },
            {
                "name": "showInPostage",
                "type": "bool",
                "title": "是否显示包邮",
                "value": 1
            },
            {
                "name": "showAddCartBtn",
                "type": "bool",
                "title": "是否显示添加购物车",
                "value": 0
            },
            {
                "name": "showPrice",
                "type": "bool",
                "title": "是否显示价格",
                "value": 0
            },
            {
                "name": "showItemTitle",
                "type": "bool",
                "title": "是否显示标题",
                "value": 0
            },
            {
                "name": "catIdList",
                "type": "cats",
                "title": "指定分类",
                "value": []
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
            {
                "name": "catTitle_color",
                "type": "color",
                "title": "分类标题默认颜色",
                "value": "#1A1A1A"
            },
            {
                "name": "catTitle_checked_color",
                "type": "color",
                "title": "分类标题选中颜色",
                "value": "#4e4e2e"
            },
            {
                "name": "catTitle_font_size",
                "type": "number",
                "title": "分类标题文字大小",
                "value": 14
            },
        ]
    }, {
        id: "facepayment",
        name: "当面付款",
        en: "facepayment",
        ofpage: "config", //强制指定所属页面
        data: []
    }, {
        id: "uditem_1",
        name: "指定商品-单列",
        en: "uditem_1",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "items",
                "type": "items",
                "title": "商品列表",
                "value": []
            },
            {
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否显示销量",
                "value": 1
            },
            {
                "name": "showInPostage",
                "type": "bool",
                "title": "是否显示包邮",
                "value": 1
            },
            {
                "name": "showAddCartBtn",
                "type": "bool",
                "title": "是否显示添加购物车",
                "value": 0
            },
            {
                "name": "showPrice",
                "type": "bool",
                "title": "是否显示价格",
                "value": 1
            },
            {
                "name": "showItemTitle",
                "type": "bool",
                "title": "是否显示标题",
                "value": 1
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },

        ]
    }, {
        id: "uditem_2",
        name: "指定商品-双列",
        en: "uditem_2",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "items",
                "type": "items",
                "title": "商品列表",
                "value": []
            },
            {
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否显示销量",
                "value": 1
            },
            {
                "name": "showInPostage",
                "type": "bool",
                "title": "是否显示包邮",
                "value": 1
            },
            {
                "name": "showAddCartBtn",
                "type": "bool",
                "title": "是否显示添加购物车",
                "value": 0
            },
            {
                "name": "showPrice",
                "type": "bool",
                "title": "是否显示价格",
                "value": 1
            },
            {
                "name": "showItemTitle",
                "type": "bool",
                "title": "是否显示标题",
                "value": 1
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            // { "name": "marginLeft", "type": "number", "title": "左边距", "value": 0 },
            // { "name": "marginRight", "type": "number", "title": "右边距", "value": 0 },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            // { "name": "paddingLeft", "type": "number", "title": "左内边距", "value": 0 },
            // { "name": "paddingRight", "type": "number", "title": "右内边距", "value": 0 },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },

        ]
    }, {
        id: "uditem_3",
        name: "指定商品-三列",
        en: "uditem_3",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "items",
                "type": "items",
                "title": "商品列表",
                "value": []
            },
            {
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否显示销量",
                "value": 1
            },
            {
                "name": "showInPostage",
                "type": "bool",
                "title": "是否显示包邮",
                "value": 1
            },
            {
                "name": "showAddCartBtn",
                "type": "bool",
                "title": "是否显示添加购物车",
                "value": 0
            },
            {
                "name": "showPrice",
                "type": "bool",
                "title": "是否显示价格",
                "value": 1
            },
            {
                "name": "showItemTitle",
                "type": "bool",
                "title": "是否显示标题",
                "value": 1
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            // { "name": "marginLeft", "type": "number", "title": "左边距", "value": 0 },
            // { "name": "marginRight", "type": "number", "title": "右边距", "value": 0 },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            // { "name": "paddingLeft", "type": "number", "title": "左内边距", "value": 0 },
            // { "name": "paddingRight", "type": "number", "title": "右内边距", "value": 0 },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },

        ]
    }, {
        id: "uditem_4",
        name: "指定商品-横向",
        en: "uditem_4",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "items",
                "type": "items",
                "title": "商品列表",
                "value": []
            },
            {
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否显示销量",
                "value": 1
            },
            {
                "name": "showInPostage",
                "type": "bool",
                "title": "是否显示包邮",
                "value": 1
            },
            {
                "name": "showAddCartBtn",
                "type": "bool",
                "title": "是否显示添加购物车",
                "value": 0
            },
            {
                "name": "showPrice",
                "type": "bool",
                "title": "是否显示价格",
                "value": 1
            },
            {
                "name": "showItemTitle",
                "type": "bool",
                "title": "是否显示标题",
                "value": 1
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            // { "name": "marginLeft", "type": "number", "title": "左边距", "value": 0 },
            // { "name": "marginRight", "type": "number", "title": "右边距", "value": 0 },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            // { "name": "paddingLeft", "type": "number", "title": "左内边距", "value": 0 },
            // { "name": "paddingRight", "type": "number", "title": "右内边距", "value": 0 },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },

        ]
    }, {
        id: "uditem_5",
        name: "指定商品-横向(3列商品)",
        en: "uditem_5",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "items",
                "type": "items",
                "title": "商品列表",
                "value": []
            },
            {
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否显示销量",
                "value": 1
            },
            {
                "name": "showInPostage",
                "type": "bool",
                "title": "是否显示包邮",
                "value": 1
            },
            {
                "name": "showAddCartBtn",
                "type": "bool",
                "title": "是否显示添加购物车",
                "value": 0
            },
            {
                "name": "showPrice",
                "type": "bool",
                "title": "是否显示价格",
                "value": 1
            },
            {
                "name": "showItemTitle",
                "type": "bool",
                "title": "是否显示标题",
                "value": 1
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            // { "name": "marginLeft", "type": "number", "title": "左边距", "value": 0 },
            // { "name": "marginRight", "type": "number", "title": "右边距", "value": 0 },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            // { "name": "paddingLeft", "type": "number", "title": "左内边距", "value": 0 },
            // { "name": "paddingRight", "type": "number", "title": "右内边距", "value": 0 },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },

        ]
    }, {
        id: "catitems_udcid",
        name: "指定分类",
        en: "catitems_udcid",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "showThreeColumn",
                "type": "bool",
                "title": "是否按显示三个一列展示",
                "value": 0
            },
            {
                "name": "showAllItems",
                "type": "bool",
                "title": "是否全店商品",
                "value": 0
            },
            {
                "name": "catid",
                "type": "catid",
                "title": "指定分类",
                "value": ""
            },
            {
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否显示销量",
                "value": 1
            },
            {
                "name": "showAddCartBtn",
                "type": "bool",
                "title": "是否显示添加购物车",
                "value": 0
            },
            {
                "name": "showInPostage",
                "type": "bool",
                "title": "是否显示包邮",
                "value": 1
            },
            {
                "name": "showPrice",
                "type": "bool",
                "title": "是否显示价格",
                "value": 0
            },
            {
                "name": "showItemTitle",
                "type": "bool",
                "title": "是否显示标题",
                "value": 0
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },

        ]
    }, {
        id: "catrent_udcid",
        name: "指定分类租赁",
        en: "catrent_udcid",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "catid",
                "type": "catid",
                "title": "指定分类",
                "value": ""
            },
            {
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否显示销量",
                "value": 1
            },
            {
                "name": "showAddCartBtn",
                "type": "bool",
                "title": "是否显示添加购物车",
                "value": 0
            },
            {
                "name": "showInPostage",
                "type": "bool",
                "title": "是否显示包邮",
                "value": 1
            },
            {
                "name": "showPrice",
                "type": "bool",
                "title": "是否显示价格",
                "value": 0
            },
            {
                "name": "showItemTitle",
                "type": "bool",
                "title": "是否显示标题",
                "value": 0
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 10
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 10
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
            {
                "name": "height",
                "type": "number",
                "title": "高度",
                "value": "",
                "max": 850,
                "min": 50
            },
            {
                "name": "autoPlay",
                "type": "bool",
                "title": "自动播放",
                "value": 0
            },
            {
                "name": "vertical",
                "type": "bool",
                "title": "上下滚动",
                "value": 0
            }
        ]
    }, {
        id: "catitems_list",
        name: "分类竖列展示",
        en: "catitems_list",
        data: [{
                "name": "openlabeltab",
                "type": "bool",
                "title": "开启标签tab的展示形式",
                "value": true
            }, {
                "name": "closecanzhuo",
                "type": "bool",
                "title": "是否隐藏餐桌按钮",
                "value": false
            },
            {
                "name": "zhiyouaddress",
                "type": "bool",
                "title": "是否在结算页面只能选择收货选择地址(需在小程序上设置选择收货地址，且‘不能和是否在结算页面只显示到店消费冲突’)",
                "value": false
            },
            {
                "name": "zhiyoudaodian",
                "type": "bool",
                "title": "是否在结算页面只能选择到店消费(需在小程序上设置选择收货地址，且‘不能和是否在结算页面只显示到店消费冲突’)",
                "value": false
            },
            {
                "name": "heightCat",
                "type": "number",
                "title": "组件展示高度(0代表自动)",
                "value": 0,
                "min": 10
            },
            {
                "name": "showTabBar",
                "type": "bool",
                "title": "是否显示底部栏（首页、订单、我的）",
                "value": false
            },

            {
                "name": "showAddCartBtn",
                "type": "bool",
                "title": "是否显示单品购买按钮（最好与下面加购物车互斥显示）",
                "value": false
            },
            {
                "name": "showCart",
                "type": "bool",
                "title": "是否显示加减添加购物车",
                "value": true
            },

            {
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否显示销量",
                "value": 1
            },
            {
                "name": "showInPostage",
                "type": "bool",
                "title": "是否显示包邮",
                "value": 1
            },
            {
                "name": "showPrice",
                "type": "bool",
                "title": "是否显示价格",
                "value": false
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            }, {
                "name": "opensearch",
                "type": "bool",
                "title": "是否显示搜索框",
                "value": false
            },

        ]
    }, {
        id: "slider",
        name: "轮播图",
        en: "slider",
        data: [{
                "name": "height",
                "type": "number",
                "title": "高度",
                "value": "",
                "max": 850,
                "min": 50
            },
            {
                "name": "image1",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image2",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image3",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image4",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image5",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "autoPlay",
                "type": "bool",
                "title": "自动播放",
                "value": 0
            },
            {
                "name": "vertical",
                "type": "bool",
                "title": "上下滚动",
                "value": 0
            },
        ]
    }, {
        id: "catlist",
        name: "类目列表",
        en: "catlist",
        data: [{
                "name": "row",
                "type": "number",
                "title": "行数",
                "value": 1,
                "max": 5,
                "min": 1
            },
            {
                "name": "col",
                "type": "number",
                "title": "列数",
                "value": 1,
                "max": 5,
                "min": 1
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },

        ]
    }, {
        id: "udcontent",
        name: "自定义内容",
        en: "udcontent",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            // { "name": "content", "type": "ueditor", "title": "自定义内容", "value": {} },
            {
                "name": "content",
                "type": "ueditor",
                "title": "自定义内容",
                "value": ""
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
        ]
    }, {
        id: "storelist",
        name: "门店列表",
        en: "storelist",
        data: []
    }, {
        id: "udtemplate",
        name: "模板",
        en: "udtemplate",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "content",
                "type": "textarea",
                "title": "自定义内容",
                "value": ""
            },
        ]
    }, {
        id: "coupons",
        name: "优惠劵",
        en: "coupons",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "couponimg",
                "type": "image",
                "title": "优惠劵背景图",
                "value": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9SCnGNf3tz0_!!20841398.png"
            }, {
                "name": "fontColor",
                "type": "color",
                "title": "描述文字颜色",
                "value": "#fff"
            },
            {
                "name": "coupons",
                "type": "coupons",
                "title": "优惠券列表",
                "value": []
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 10
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 10
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
        ]
    }, {
        id: "couponDialog",
        name: "优惠劵弹窗",
        en: "couponDialog",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "coupons",
                "type": "coupons",
                "title": "优惠券列表",
                "value": []
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
        ]
    }, {
        id: "udprompt",
        name: "弹窗",
        en: "udprompt",
        ofpage: "home",
        data: [
            // { "name": "title", "type": "string", "title": "标题", "value": "" },
            {
                "name": "content",
                "type": "ueditor",
                "title": "自定义内容",
                "value": {}
            },
            {
                "name": "timeout",
                "type": "number",
                "title": "几天显示一次",
                "value": 1
            },
            // { "name": "closeBtn", "type": "string", "title": "关闭按钮文字", "value": "" },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            // { "name": "backgroundColor", "type": "color", "title": "背景颜色", "value": "" },
        ]
    }, {
        id: "tuangou",
        name: "秒杀",
        en: "tuangou",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "item",
                "type": "item",
                "title": "商品列表",
                "value": {}
            },
            {
                "name": "x",
                "type": "hidden",
                "title": "",
                "value": []
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },

        ]
    }, {
        id: "kanjia",
        name: "砍价",
        en: "kanjia",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "item",
                "type": "item",
                "title": "商品列表",
                "value": {}
            },
            {
                "name": "x",
                "type": "hidden",
                "title": "",
                "value": []
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },

        ]
    }, {
        id: "page_body",
        name: "活动页内容",
        en: "page_body",
        ofpage: "page", //强制指定所属页面
        data: []
    }, {
        id: "cat_body",
        name: "分类内容",
        en: "cat_body",
        ofpage: "cat", //强制指定所属页面
        data: [{
                "name": "goodpage",
                "type": "goodpage",
                "title": "分类商品展示页面",
                "value": 2
            }, {
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否显示销量",
                "value": 1
            },
            {
                "name": "showInPostage",
                "type": "bool",
                "title": "是否显示包邮",
                "value": 1
            },
            {
                "name": "showAddCartBtn",
                "type": "bool",
                "title": "是否显示添加购物车",
                "value": 0
            },
            {
                "name": "showPrice",
                "type": "bool",
                "title": "是否显示价格",
                "value": 0
            },
            {
                "name": "showItemTitle",
                "type": "bool",
                "title": "是否显示标题",
                "value": 0
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },

        ]
    }, {
        id: "detail_slider",
        name: "详情页_主图轮播",
        en: "detail_slider",
        ofpage: "detail", //强制指定所属页面
        data: [{
                "name": "autoPlay",
                "type": "bool",
                "title": "自动播放",
                "value": 0
            },
            {
                "name": "hidden",
                "type": "bool",
                "title": "是否隐藏",
                "value": 0
            },
        ]
    }, {
        id: "detail_price",
        name: "详情页_价格",
        en: "detail_price",
        ofpage: "detail", //强制指定所属页面
        data: [{
                "name": "showPirce",
                "type": "bool",
                "title": "是否显示价格",
                "value": 0
            },
            {
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否显示销量",
                "value": 0
            },
            {
                "name": "showFuwu",
                "type": "bool",
                "title": "是否服务列表",
                "value": 0
            },
            {
                "name": "detailPageTitle",
                "type": "string",
                "title": "详情页标题",
                "value": "商品详情"
            },
        ]
    }, {
        id: "detail_tabbar",
        name: "详情页_底部栏",
        en: "detail_tabbar",
        ofpage: "detail", //强制指定所属页面
        data: [{
                "name": "showAddCartBtn",
                "type": "bool",
                "title": "是否显示添加购物车",
                "value": 0
            },
            {
                "name": "cartBtnTitle",
                "type": "string",
                "title": "联系我按钮文字",
                "value": "亲！点这里联系我！"
            },
            {
                "name": "ShowBuytBtn",
                "type": "bool",
                "title": "是否生成订单",
                "value": 0
            },
        ]
    }, {
        id: "detail_pingjia",
        name: "详情页_评价",
        en: "detail_pingjia",
        ofpage: "detail", //强制指定所属页面
        data: [{
            "name": "showPingjia",
            "type": "bool",
            "title": "是否显示评价",
            "value": 0
        }, ]
    }, {
        id: "detail_kefufav",
        name: "详情页_收藏按钮",
        en: "detail_kefufav",
        ofpage: "detail", //强制指定所属页面
        data: [{
            "name": "showKefuFav",
            "type": "bool",
            "title": "是否显示收藏按钮",
            "value": 0
        }, ]
    }, {
        id: "kefuTel",
        name: "客服聊天及电话按钮",
        en: "kefuTel",
        ofpage: "config", //强制指定所属页面
        data: [
            // { "name": "showKefuFav", "type": "bool", "title": "是否显示收藏和客服按钮", "value": 0 },
            {
                "name": "tel",
                "type": "string",
                "title": "联系电话",
                "value": 0
            },
            {
                "name": "tel_icon",
                "type": "image",
                "title": "电话图标",
                "icon": 1,
                "value": "https://img.alicdn.com/imgextra/i2/20841398/TB2lofPaFYM8KJjSZFuXXcf7FXa-20841398.png"
            },
            {
                "name": "tel_icon_width",
                "type": "number",
                "title": "电话图标宽度",
                "value": 50
            },
            {
                "name": "tel_icon_height",
                "type": "number",
                "title": "电话图标高度",
                "value": 50
            },
            {
                "name": "contact_icon",
                "type": "image",
                "title": "客服图标",
                "icon": 2,
                "value": "https://img.alicdn.com/imgextra/i2/20841398/TB2X2.zc0nJ8KJjSszdXXaxuFXa-20841398.png"
            },
            {
                "name": "contact_icon_width",
                "type": "number",
                "title": "客服图标宽度",
                "value": 50
            },
            {
                "name": "contact_icon_height",
                "type": "number",
                "title": "客服图标高度",
                "value": 50
            },
        ]
    }, {
        id: "bottomCopyright",
        name: "底部版权",
        en: "bottomCopyright",
        ofpage: "config", //强制指定所属页面
        data: [{
                "name": "copyright_icon",
                "type": "image",
                "title": "版权logo",
                "value": "https://img.alicdn.com/imgextra/i1/20841398/TB28z2WzrxmpuFjSZJiXXXauVXa-20841398.png"
            },
            {
                "name": "copyright_icon_width",
                "type": "number",
                "title": "版权logo图标宽度",
                "value": 60
            },
            {
                "name": "copyright_icon_height",
                "type": "number",
                "title": "版权logo图标高度",
                "value": 60
            },
            {
                "name": "showZhiChi",
                "type": "hidden",
                "title": "是否关闭版权文字",
                "value": 0
            },
            {
                "name": "logo_open_img",
                "type": "image",
                "title": "点击logo展示图片",
                "icon": 2,
                "value": ""
            },
        ]
    }, {
        id: "page_colorfengge",
        name: "页面颜色风格",
        en: "PageColorStyle",
        ofpage: "config",
        data: [{
            "name": "colorstylechoice",
            "type": "colorStyleChoice",
            "title": "颜色风格选择",
            "value": "1"
        }, {
            "name": "time_backColor",
            "type": "color",
            "title": "倒计时背景颜色",
            "value": "#ffe04a"
        }, {
            "name": "zujian_backColor",
            "type": "color",
            "title": "组件背景颜色",
            "value": "#1dbb90"
        }, {
            "name": "zujian_backFontColor",
            "type": "color",
            "title": "组件背景里的字体颜色",
            "value": "#ffffff",
        }, {
            "name": "describe_fontColor",
            "type": "color",
            "title": "描述级说明文字颜色",
            "value": "#a0a0a0"
        }, {
            "name": "detail_cartBtnColor",
            "type": "color",
            "title": "商品详情购物车按钮",
            "value": "#effbf9",
        }, {
            "name": "page_titleColor",
            "type": "color",
            "title": "页面标题标准字体颜色",
            "value": "#4e4e4e"
        }, {
            "name": "zujian_fenge",
            "type": "hidden",
            "value": "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9cM59vdMqe5_!!20841398.png"
        }]
    }, {
        id: "detail_postfee",
        name: "详情页_运费",
        en: "detail_postfee",
        ofpage: "detail", //强制指定所属页面
        data: [{
            "name": "showPostFee",
            "type": "bool",
            "title": "是否显示运费",
            "value": 0
        }, ]
    }, {
        id: "ministore_list",
        name: "小店_列表",
        en: "ministore_list",
        ofpage: "ministore", //强制指定所属页面
        data: []
    }, {
        id: "userfx",
        name: "快捷分销申请",
        en: "Fast distribution",
        ofpage: "home", //强制指定所属页面
        data: []
    }, {
        id: "ministore_add",
        name: "小店_创建表单",
        en: "ministore_add",
        ofpage: "ministoreadd", //强制指定所属页面
        data: []
    }, {
        id: "ministore_add_form",
        name: "小店_表单配置",
        en: "ministore_add_form",
        ofpage: "ministoreadd", //强制指定所属页面
        data: [{
                "name": "inputType",
                "type": "list",
                "title": "用户所需信息",
                "list_values": ["qrcode", "zhizhao_image", "beian_image", "id_front_image", "id_back_image", "name", "shop_name", "mobile", "phone", "address", "mark", "mendian_image"],
                "value": []
            },
            {
                "name": "validInput",
                "type": "list",
                "title": "用户必须输入选项",
                "list_values": ["qrcode", "zhizhao_image", "beian_image", "id_front_image", "id_back_image", "name", "shop_name", "mobile", "phone", "address", "mark", "mendian_image"],
                "value": []
            },

        ]
    }, {
        id: "huodong_list",
        name: "报名活动_描述",
        en: "huodong_list",
        ofpage: "huodongindex", //强制指定所属页面
        data: []
    }, {
        id: "activity_add_form",
        name: "报名活动_表单区",
        en: "activity_add_form",
        ofpage: "huodongadd", //强制指定所属页面
        data: [{
                "name": "validInput",
                "type": "list",
                "title": "必填参数设置",
                "list_values": ["nick_name", "mobile", "avatar", "weixin", "qq", "id_number", "provice", "city", "district", "address"],
                "value": []
            },
            {
                "name": "inputType",
                "type": "list",
                "title": "输入哪些选项",
                "list_values": ["nick_name", "mobile", "avatar", "weixin", "qq", "id_number", "provice", "city", "district", "address"],
                "value": []
            },
        ]
    }, {
        id: "order_additional_form",
        name: "订单附加_表单区",
        en: "order_additional_form",
        ofpage: "config", //强制指定所属页面
        data: [{
                "name": "validInput",
                "type": "list",
                "title": "必填参数设置",
                "list_values": ["nick_name", "avatar", "identify_id", "identify_img_front", "identify_img_back", "mobile", "weixin", "qq", "province", "city", "district", "address"],
                "value": []
            },
            {
                "name": "inputType",
                "type": "list",
                "title": "输入哪些选项",
                "list_values": ["nick_name", "avatar", "identify_id", "identify_img_front", "identify_img_back", "mobile", "weixin", "qq", "province", "city", "district", "address"],
                "value": []
            },
        ]
    }, {
        id: "liuyan_form",
        name: "留言表单",
        en: "liuyan_form",
        data: [{
                "name": "validInput",
                "type": "list",
                "title": "必填参数设置",
                "list_values": ["name", "content", "qq", "phone", "email"],
                "value": []
            },
            {
                "name": "inputType",
                "type": "list",
                "title": "输入哪些选项",
                "list_values": ["name", "content", "qq", "phone", "email"],
                "value": []
            },
        ]
    }, {
        id: "udicons",
        name: "自定义图标区",
        en: "udicons",
        data: [{
                "name": "round",
                "type": "bool",
                "title": "是否为圆",
                "value": 1
            },
            {
                "name": "fontColor",
                "type": "color",
                "title": "文字颜色",
                "value": "#000000"
            },
            {
                "name": "col",
                "type": "number",
                "title": "1行几个图标",
                "value": "",
                "max": 6,
                "min": 2
            },
            {
                "name": "row",
                "type": "number",
                "title": "几行一面",
                "value": "",
                "max": 6,
                "min": 1
            },
            {
                "name": "backgroundImage",
                "type": "image",
                "title": "背景图",
                "value": ""
            },
            {
                "name": "image1",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image2",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image3",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image4",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image5",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image6",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image7",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image8",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image9",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image10",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image11",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image12",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image13",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image14",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image15",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image16",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image17",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image18",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image19",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image20",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image21",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image22",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image23",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image24",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image25",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image26",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image27",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image28",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image29",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image30",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image31",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image32",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image33",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image34",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image35",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image36",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "iconHeight",
                "type": "number",
                "title": "展示图标大小（不设置自动适应）",
                "value": 0
            },
            {
                "name": "contentHeight",
                "type": "number",
                "title": "自定图标区整体内容的高度（不设置自动适应）",
                "value": 0
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
            {
                "name": "borderTopLeftRadius",
                "type": "number",
                "title": "左上角边框角度(值越大越圆)",
                "value": 0
            },
            {
                "name": "borderTopRightRadius",
                "type": "number",
                "title": "右上角边框角度(值越大越圆)",
                "value": 0
            },
            {
                "name": "borderBottomLeftRadius",
                "type": "number",
                "title": "左下角边框角度(值越大越圆)",
                "value": 0
            },
            {
                "name": "borderBottomRightRadius",
                "type": "number",
                "title": "右下角边框角度(值越大越圆)",
                "value": 0
            },
        ]
    }, {
        id: "udnotice",
        name: "自定义公告",
        en: "udnotice",
        data: [{
                "name": "fontColor",
                "type": "color",
                "title": "文字颜色",
                "value": "#000000"
            },
            {
                "name": "content",
                "type": "string",
                "title": "公告内容",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
        ]
    }, {
        id: "advertisement",
        name: "广告",
        ofpage: "home",
        en: "advertisement",
        data: [{
                "name": "interval",
                "type": "number",
                "title": "广告切换秒数",
                "value": 1
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "广告背景遮挡颜色",
                "value": "#fff"
            },
            {
                "name": "djsColor",
                "type": "color",
                "title": "倒计时秒数颜色",
                "value": "#1A1A1A"
            },
            {
                "name": "djsBorderColor",
                "type": "color",
                "title": "倒计时边框颜色",
                "value": "#eee"
            },
            {
                "name": "image1",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image2",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image3",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image4",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image5",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image6",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image7",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image8",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image9",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image10",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image11",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            {
                "name": "image12",
                "type": "image",
                "title": "图片",
                "value": "",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            },
            // { "name": "marginTop", "type": "number", "title": "上边距", "value": 0 },
            // { "name": "marginBottom", "type": "number", "title": "下边距", "value": 0 },
            // { "name": "marginLeft", "type": "number", "title": "左边距", "value": 0 },
            // { "name": "marginRight", "type": "number", "title": "右边距", "value": 0 },
            // { "name": "paddingTop", "type": "number", "title": "上内边距", "value": 0 },
            // { "name": "paddingBottom", "type": "number", "title": "下内边距", "value": 0 },
            // { "name": "paddingLeft", "type": "number", "title": "左内边距", "value": 0 },
            // { "name": "paddingRight", "type": "number", "title": "右内边距", "value": 0 },
            // { "name": "backgroundColor", "type": "color", "title": "背景颜色", "value": "#ffffff" },
        ]
    }, {
        id: "page", //测试活动页面
        name: "活动自定义内容",
        en: "page",
        ofpage: "page", //强制指定所属页面
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "content",
                "type": "ueditor",
                "title": "自定义内容",
                "value": {}
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },

        ]
    }, {
        id: "kanjiaui", //测试活动页面
        name: "砍价活动",
        en: "kanjiaui",
        ofpage: "kanjia", //强制指定所属页面
        data: [{
                "name": "backgroundImage",
                "type": "image",
                "title": "背景图",
                "value": ""
            },
            {
                "name": "fontColor",
                "type": "color",
                "title": "文字颜色",
                "value": "#000000"
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
            {
                "name": "showRank",
                "type": "bool",
                "title": "显示排行榜",
                "value": 0
            },
        ]
    }, {
        id: "udpanel",
        name: "自定义面板",
        en: "udpanel",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "content",
                "type": "udpanel",
                "title": "自定义内容",
                "value": {}
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
        ]
    }, {
        id: "rollcontent",
        name: "滚动文章",
        en: "rollcontent",
        data: [{
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
            {
                "name": "fontColor",
                "type": "color",
                "title": "文字颜色",
                "value": "#1A1A1A"
            },
            {
                "name": "titleColor",
                "type": "color",
                "title": "最新颜色",
                "value": "#F65509"
            },
        ]
    }, {
        id: "wenzhanglist",
        name: "文章列表",
        en: "wenzhanglist",
        ofpage: "home",
        data: [{
            "name": "scrollHeight",
            "type": "number",
            "title": "文章列表展示高度",
            "value": 200
        }]
    }, {
        id: "commentary",
        name: "商品评论点赞",
        en: "commentary",
        ofpage: "detail", //强制指定所属页面
        data: [{
                "name": "showComment",
                "type": "bool",
                "title": "是否显示评论",
                "value": 1
            },
            {
                "name": "showClickLike",
                "type": "bool",
                "title": "是否显示点赞",
                "value": 1
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 0
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 0
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },

        ]
    }, {
        id: "huodonglist",
        name: "活动列表",
        en: "activitylist",
        ofpage: "home",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "marginTop",
                "type": "number",
                "title": "上边距",
                "value": 10
            },
            {
                "name": "marginBottom",
                "type": "number",
                "title": "下边距",
                "value": 10
            },
            {
                "name": "marginLeft",
                "type": "number",
                "title": "左边距",
                "value": 0
            },
            {
                "name": "marginRight",
                "type": "number",
                "title": "右边距",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 0
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 0
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 0
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 0
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
            {
                "name": "scorllHeight",
                "type": "number",
                "title": "列表展示高度",
                "value": 90,
                "max": 800,
                "min": 90
            },

        ]
    }, {
        id: "guanggao",
        name: "小程序广告",
        en: "Advertisement",
        data: [{
            "name": "adunitid",
            "type": "string",
            "title": "广告id",
            "value": ""
        }]
    }, {
        id: "weblink",
        name: "加载网页",
        en: "weblink",
        data: [{
            "name": "link",
            "type": "string",
            "title": "网址(有限制，具体咨询客服)",
            "value": ""
        }]
    }, {
        id: "openxcx",
        name: "打开其他小程序",
        en: "openxcx",
        data: [{
                "name": "xcxappid",
                "type": "string",
                "title": "小程序(有限制，具体咨询客服)",
                "value": ""
            }, {
                "name": "minicon",
                "type": "image",
                "title": "小图标",
                "value": "",
            }, {
                "name": "title",
                "type": "string",
                "title": "提示文字(或者是小程序名字)",
                "value": ""
            }, {
                "name": "maxwidth",
                "type": "number",
                "title": "展示小程序名字最大宽度",
                "value": 150
            },
            {
                "name": "contentheight",
                "type": "number",
                "title": "图片高度",
                "value": 35
            },
            {
                "name": "fontSize",
                "type": "number",
                "title": "小程序名字字体大小(单位pt)",
                "value": 9
            },
            {
                "name": "positionTop",
                "type": "number",
                "title": "浮动距离顶部位置",
                "value": 150
            },
            {
                "name": "isBottom",
                "type": "bool",
                "title": "是否从底部浮动",
                "value": 0
            }, {
                "name": "positionLeftRight",
                "type": "number",
                "title": "浮动距离左右边位置",
                "value": 0
            },
            {
                "name": "isLeft",
                "type": "bool",
                "title": "是否从左开始浮动",
                "value": 1
            },
            {
                "name": "borderTopLeftRadius",
                "type": "number",
                "title": "左上角边框角度(值越大越圆)",
                "value": 0
            },
            {
                "name": "borderTopRightRadius",
                "type": "number",
                "title": "右上角边框角度(值越大越圆)",
                "value": 0
            },
            {
                "name": "borderBottomLeftRadius",
                "type": "number",
                "title": "左下角边框角度(值越大越圆)",
                "value": 0
            },
            {
                "name": "borderBottomRightRadius",
                "type": "number",
                "title": "右下角边框角度(值越大越圆)",
                "value": 0
            },
            {
                "name": "paddingTop",
                "type": "number",
                "title": "上内边距",
                "value": 10
            },
            {
                "name": "paddingBottom",
                "type": "number",
                "title": "下内边距",
                "value": 10
            },
            {
                "name": "paddingLeft",
                "type": "number",
                "title": "左内边距",
                "value": 10
            },
            {
                "name": "paddingRight",
                "type": "number",
                "title": "右内边距",
                "value": 10
            },
            {
                "name": "backgroundColor",
                "type": "color",
                "title": "背景颜色",
                "value": "#ffffff"
            },
            {
                "name": "fontColor",
                "type": "color",
                "title": "文字颜色",
                "value": "#ffffff"
            }
        ]
    }, {
        id: "discountlist",
        name: "优惠活动列表",
        en: "discountlist",
        data: [{
            "name": "discount",
            "type": "discount",
            "title": "优惠活动类型",
            "value": ""
        }]
    }, {
        id: "pinitem",
        name: "自定义拼团商品列表",
        en: "pinitem",
        ofpage: "home",
        data: [{
            "name": "title",
            "type": "string",
            "title": "标题",
            "value": ""
        }, {
            "name": "pinitem",
            "type": "pintuans",
            "title": "拼团商品",
        }]
    }, {
        id: "pinitemscrollx",
        name: "自定义拼团商品横向展示",
        en: "pinitemscrollx",
        ofpage: "home",
        data: [{
            "name": "title",
            "type": "string",
            "title": "标题",
            "value": ""
        }, {
            "name": "pinitem",
            "type": "pintuans",
            "title": "拼团商品",
        }]
    }, {
        id: "pintuanlist",
        name: "拼团优惠活动",
        en: "pintuanlist",
        data: [{
            "name": "discount",
            "type": "hidden",
            "title": "优惠活动类型",
            "value": ['pintuan']
        }]
    }, {
        id: "uditem_6",
        name: "自定义商品展示6",
        en: "uditem_6",
        data: [{
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否隐藏销量",
                "value": 0
            }, {
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "items",
                "type": "items",
                "title": "商品列表",
                "value": []
            },
            {
                "name": "lianjie",
                "type": "string",
                "title": "链接",
                "value": "更多",
                "click_type": "clickType",
                "ctype": "",
                "click_path": ""
            }, {
                "name": "start_date",
                "type": "date",
                "title": "开始时间"
            }, {
                "name": "end_date",
                "type": "date",
                "title": "结束时间"
            }, {
                "name": "shownum",
                "type": "number",
                "title": "商品默认显示数量",
                "value": "5"
            }
        ]
    }, {
        id: "diaochawenjuan",
        name: "调查问卷",
        en: "diaochawenjuan",
        data: [{
            "name": "title",
            "type": "string",
            "title": "标题",
            "value": ""
        }, {
            "name": "diaochawenjuan",
            "type": "diaochawenjuan",
            "title": "调查问卷",
            "value": ""
        }, {
            "name": "gourl",
            "type": "bool",
            "title": "是否在保存后查看详情",
            "value": ""
        }]
    }, {
        id: "udtitle",
        name: "自定义抬头",
        en: "udTitle",
        data: [{
            "name": "title",
            "type": "string",
            "title": "标题",
            "value": ""
        }, {
            "name": "desc",
            "type": "string",
            "title": "描述",
            "value": ""
        }, {
            "name": "icon",
            "type": "image",
            "title": "图片",
            "value": ""
        }, {
            "name": "tel_icon",
            "type": "image",
            "title": "电话图标",
            "icon": 1,
            "value": "https://img.alicdn.com/imgextra/i2/20841398/TB2lofPaFYM8KJjSZFuXXcf7FXa-20841398.png"
        }, {
            "name": "contact_icon",
            "type": "image",
            "title": "客服图标",
            "icon": 2,
            "value": "https://img.alicdn.com/imgextra/i2/20841398/TB2X2.zc0nJ8KJjSszdXXaxuFXa-20841398.png"
        }]
    }, {
        id: "requ",
        name: "热区",
        en: "requ",
        data: [{
            "name": "title",
            "type": "string",
            "title": "标题",
            "value": ""
        }, {
            "name": "requ",
            "type": "requ",
            "title": "热区",
            "value": ""
        }]
    }, {
        id: "itemtuijian",
        name: "商品推荐",
        en: "item_Recommend",
        ofpage: "detail",
        data: [{
                "name": "title",
                "type": "string",
                "title": "标题",
                "value": ""
            },
            {
                "name": "catortag",
                "type": "catortag",
                "title": "优先按类目还是按标签查询",
                "value": true
            },
            {
                "name": "itemnum",
                "type": "number",
                "title": "推荐展示数量",
                "value": 2,
                "max": 20,
                "min": 2
            },
            {
                "name": "showSaleNum",
                "type": "bool",
                "title": "是否显示销量",
                "value": 1
            },
            {
                "name": "showInPostage",
                "type": "bool",
                "title": "是否显示包邮",
                "value": 1
            },
            {
                "name": "showAddCartBtn",
                "type": "bool",
                "title": "是否显示添加购物车",
                "value": 0
            },
            {
                "name": "showPrice",
                "type": "bool",
                "title": "是否显示价格",
                "value": 1
            },
            {
                "name": "showItemTitle",
                "type": "bool",
                "title": "是否显示标题",
                "value": 1
            }

        ]
    }],
};

_.map(allObjData, function(zdata, dname) {
    angular.module('webApp').directive(dname, ['dataService', '$compile',
        function(dataService, $compile) {
            return {
                restrict: 'E',
                require: 'ngModel',
                scope: {
                    ngModel: '=',
                    sid: "@", //默认选中的id
                    stype: "@", //是否只输出文字
                    return: "@",
                    dft: "@", //是否设置初始化值
                    ofpage: "@", //是否设置初始化值
                },
                template: '<span ng-if="stype" ng-bind="show()"></span><span ng-show="!stype"><select ng-model="tmpNgModel" ng-options="option.name for option in elmAry track by option.key" > </select></span>',
                controller: ['$templateCache', '$rootScope', '$scope', '$timeout',
                    function($templateCache, $rootScope, $scope, $timeout) {
                        $scope.tmpNgModel = {};
                        $scope.show = function() {
                            if (window.localStorage.lang == 'zh-cn' || !window.localStorage.lang) {
                                return $scope.tmpNgModel.name || $scope.ngModel;
                            } else {
                                return $scope.tmpNgModel.en || $scope.ngModel;
                            }
                        }

                        $scope.initData = function() {
                            $scope.elmAry = {};
                            var n = 1;
                            _.map(zdata, function(v, k) {
                                if (!$scope.stype) {
                                    if ($scope.ofpage) {
                                        if (v.ofpage && $scope.ofpage != v.ofpage) {
                                            return;
                                        }
                                    }
                                }

                                v.key = "v" + n;
                                $scope.elmAry[k] = v;
                                n++;

                            });
                        }
                        $scope.initData();

                        $scope.checkValue = function(id) {
                            _.map($scope.elmAry, function(a) {
                                if (a.id == id) {
                                    $scope.tmpNgModel = a;
                                }
                            });
                        }
                    }
                ],

                link: function(scope, element, attrs, ctrl) {
                    scope.$watch('tmpNgModel', function(newValue, oldValue, scope) {
                        if (newValue) {
                            if (!scope.return) {
                                ctrl.$setViewValue(newValue);
                            }
                        }
                    });

                    scope.$watch('ofpage', function(newValue, oldValue, scope) {
                        scope.initData();
                    });

                    scope.$watch('sid', function(newValue, oldValue, scope) {
                        if (newValue) {
                            scope.checkValue(newValue);
                        }
                    });

                    scope.$watch('elmAry', function(newValue, oldValue, scope) {
                        // console.error("000000",ctrl.$viewValue,newValue)
                        if (attrs.dft && newValue && _.isString(ctrl.$viewValue)) {
                            var x = _.values(newValue);
                            if (x[0]) {
                                scope.tmpNgModel = x[0];
                                ctrl.$setViewValue(x[0]);
                            }
                        }
                    });

                    //初始化
                    ctrl.$render = function() {
                        scope.checkValue(ctrl.$viewValue);
                    };
                }
            }
        }
    ]);
});


//下拉菜单
var alldata = {
    "tabBarIcon": [{
        id: "FFFFFF",
        name: "白色",
        en: "FFFFFF",
    }, {
        id: "282828",
        name: "黑色",
        en: "282828",
    }, {
        id: "FF443A",
        name: "红色",
        en: "FF443A",
    }, {
        id: "FE7B05",
        name: "橙色",
        en: "FE7B05",
    }, {
        id: "834232",
        name: "褐色",
        en: "834232",
    }, {
        id: "999999",
        name: "灰色",
        en: "999999",
    }, {
        id: "3388FF",
        name: "蓝色",
        en: "3388FF",
    }, {
        id: "1CC752",
        name: "绿色",
        en: "1CC752",
    }, {
        id: "00A99E",
        name: "青色",
        en: "00A99E",
    }, {
        id: "8F44AD",
        name: "紫色",
        en: "8F44AD",
    }, ],
    "wifiBarText": [{
        id: "0",
        name: "欢迎光临+公众号名称",
        en: "0",
    }, {
        id: "1",
        name: "欢迎光临+门店名称",
        en: "1",
    }, {
        id: "2",
        name: "已连接+公众号名称+WiFi",
        en: "2",
    }, {
        id: "3",
        name: "已连接+门店名称+Wi-Fi",
        en: "3",
    }, ],
    "navigationBarTextStyle": [{
        id: "black",
        name: "黑色",
        en: "black",
    }, {
        id: "white",
        name: "白色",
        en: "white",
    }, ],
    "backgroundTextStyle": [{
        id: "dark",
        name: "暗色",
        en: "dark",
    }, {
        id: "light",
        name: "亮色",
        en: "light",
    }, ],
    "wxappType": [{
        id: "1",
        name: "黄蜂商城",
        en: "dhfshop",
    }],
    "wxappCodeStatu": [{
        id: "0",
        name: "审核成功",
        en: "sucess",
    }, {
        id: "1",
        name: "审核失败",
        en: "fail",
    }, {
        id: "2",
        name: "审核中",
        en: "auditing",
    }],
    "wxEvent": [{
            id: "subscribe",
            name: "关注",
            en: "subscribe",
        },
        {
            id: "scan",
            name: "扫码",
            en: "scan",
        }
    ],
    "fzType": [{
            id: "1",
            name: "微信",
            en: "1",
        },
        {
            id: "2",
            name: "银联",
            en: "2",
        },
        {
            id: "3",
            name: "新生",
            en: "3",
        }
    ],
    "wxType": [{
            id: "MERCHANT_ID",
            name: "商户ID",
            en: "1",
        },
        {
            id: "PERSONAL_WECHATID",
            name: "个人微信号",
            en: "2",
        },
        {
            id: "PERSONAL_OPENID",
            name: "个人openid",
            en: "3",
        }, {
            id: "PERSONAL_SUB_OPENID",
            name: "个人sub_openid",
            en: "4",
        }
    ],
    "ylaccType": [{
            id: "0",
            name: "对公",
            en: "0",
        },
        {
            id: "1",
            name: "对私",
            en: "1",
        }
    ],
    "xsZfType": [{
            id: "0",
            name: "个人",
            en: "0",
        },
        {
            id: "1",
            name: "企业",
            en: "1",
        }
    ],
    "xsHbDm": [{
            id: "CNY",
            name: "人民币",
            en: "CNY",
        },
        {
            id: "GBP",
            name: "英镑",
            en: "GBP",
        }
    ],
    "xsFzRegion": [{
            id: "0",
            name: "境内",
            en: "0",
        },
        {
            id: "1",
            name: "境外",
            en: "1",
        }
    ],
    "xsFzCountry": [{
        id: "CHN",
        name: "中国",
        en: "CHN",
    }],
    "subscribeScene": [{
            id: "",
            name: "来源",
            en: "",
        },
        {
            id: "ADD_SCENE_SEARCH",
            name: "公众号搜索",
            en: "ADD_SCENE_SEARCH",
        },
        {
            id: "ADD_SCENE_ACCOUNT_MIGRATION",
            name: "公众号迁移",
            en: "ADD_SCENE_ACCOUNT_MIGRATION",
        },
        {
            id: "ADD_SCENE_PROFILE_CARD",
            name: "名片分享",
            en: "ADD_SCENE_PROFILE_CARD",
        },
        {
            id: "ADD_SCENE_QR_CODE",
            name: "扫描二维码",
            en: "ADD_SCENE_QR_CODE",
        },
        {
            id: "ADD_SCENEPROFILE LINK",
            name: "图文页内名称点击",
            en: "ADD_SCENEPROFILE LINK",
        },
        {
            id: "ADD_SCENE_PROFILE_ITEM",
            name: "图文页右上角菜单",
            en: "ADD_SCENE_PROFILE_ITEM",
        },
        {
            id: "ADD_SCENE_PAID",
            name: "支付后关注",
            en: "ADD_SCENE_PAID",
        },
        {
            id: "ADD_SCENE_OTHERS",
            name: "其他",
            en: "ADD_SCENE_OTHERS",
        }
    ],
    // subscribe
    "gzhSubscribe": [{
            id: 1,
            name: "已订阅",
            en: 1,
        },
        {
            id: 0,
            name: "已取消",
            en: 0,
        }
    ],
    "wxSex": [{
            id: 1,
            name: "男",
            en: "male",
        },
        {
            id: 2,
            name: "女",
            en: "female",
        }
    ],
    "wxEventkeyType": [{
            id: 1,
            name: "默认",
            en: "mr",
        },
        {
            id: 2,
            name: "其他",
            en: "saoma",
        }
    ],
    "sceneIdType": [{
            id: 'PRODUCT_1',
            name: "商品促销",
            en: "PRODUCT_1",
        },
        {
            id: 'PRODUCT_2',
            name: "抽奖",
            en: "PRODUCT_2",
        },
        {
            id: 'PRODUCT_3',
            name: "虚拟物品兑奖",
            en: "PRODUCT_3",
        },
        {
            id: 'PRODUCT_4',
            name: "企业内部福利",
            en: "PRODUCT_4",
        }, {
            id: 'PRODUCT_5',
            name: "渠道分润",
            en: "PRODUCT_5",
        }, {
            id: 'PRODUCT_6',
            name: "保险回馈",
            en: "PRODUCT_6",
        }, {
            id: 'PRODUCT_7',
            name: "彩票派奖",
            en: "PRODUCT_7",
        }, {
            id: 'PRODUCT_8',
            name: "税务刮奖",
            en: "PRODUCT_8",
        }
    ],

    "notifyType": [{
        id: "1",
        name: "全部店铺",
        en: "all",
    }, {
        id: "2",
        name: "指定用户",
        en: "spec",
    }],
    "webisteType": [{
        id: "home",
        name: "首页",
        en: "home",
    }],
    "jumpType": [{
        id: "2",
        name: "不跳转",
        en: "no",
    }, {
        id: "1",
        name: "强制跳转",
        en: "yes",
    }],
    "uimodsType": [{
            id: "home",
            name: "首页",
            en: "home",
        }, {
            id: "detail",
            name: "商品详情页",
            en: "detail",
        }, {
            id: "page",
            name: "活动页",
            en: "page",
        }, {
            id: "cat",
            name: "分类页",
            en: "cat",
        }, {
            id: "kanjia",
            name: "砍价页",
            en: "kanjia",
        }, {
            id: "ministore",
            name: "小店页",
            en: "ministore",
        }, {
            id: "ministoreadd",
            name: "创建小店页",
            en: "ministoreadd",
        }, {
            id: "config",
            name: "其他设置",
            en: "config",
        }, {
            id: "huodongindex",
            name: "活动详情页",
            en: "activityindex"
        }, {
            id: "huodongadd",
            name: "活动报名页",
            en: "activityadd"
        }, {
            id: "home1",
            name: "自定义页1",
            en: "home1",
        }, {
            id: "home2",
            name: "自定义页2",
            en: "home2",
        }, {
            id: "home3",
            name: "自定义页3",
            en: "home3",
        }, {
            id: "home4",
            name: "自定义页4",
            en: "home4",
        }, {
            id: "home5",
            name: "自定义页5",
            en: "home5",
        }, {
            id: "home6",
            name: "自定义页6",
            en: "home6",
        }, {
            id: "home7",
            name: "自定义页7",
            en: "home7",
        }, {
            id: "home8",
            name: "自定义页8",
            en: "home8",
        },
        {
            id: "home9",
            name: "自定义页9",
            en: "home9",
        },
        {
            id: "home10",
            name: "自定义页10",
            en: "home10",
        },
        {
            id: "hongbao",
            name: "红包页",
            en: "moneyEnvelope_Page"
        }
    ],
    "uimodsCtype": [{
        id: "b",
        name: "企业类型",
        en: "b",
    }, {
        id: "c",
        name: "个人类型",
        en: "c",
    }],
    "postageType": [{
        id: "0",
        name: "供应商承担",
        en: "none_edit",
    }, {
        id: "1",
        name: "分销商承担",
        en: "yes",
    }],
    "wxappStatu": [{
        id: "-1",
        name: "草稿",
        en: "caigao",
    }, {
        id: "1",
        name: "已发布",
        en: "publisded",
    }],
    "dahlpayCurrency": [{
        id: "HKD",
        name: "HKD",
        en: "HKD",
    }, {
        id: "CNY",
        name: "CNY",
        en: "CNY",
    }],
    "qcurepayCurrency": [{
        id: "HKD",
        name: "HKD",
        en: "HKD",
    }, {
        id: "CNY",
        name: "CNY",
        en: "CNY",
    }],
    "yhCurrency": [{
        id: "USD",
        name: "USD",
        en: "USD",
    }, {
        id: "HKD",
        name: "HKD",
        en: "HKD",
    }, {
        id: "CNY",
        name: "CNY",
        en: "CNY",
    }],
    "royalCurrency": [{
        id: "AUD",
        name: "AUD",
        en: "AUD",
    }, {
        id: "CNY",
        name: "CNY",
        en: "CNY",
    }],
    "supayCurrency": [{
        id: "CNY",
        name: "CNY",
        en: "CNY",
    }, {
        id: "TWD",
        name: "TWD",
        en: "TWD",
    }],
    "gmsCurrency": [{
        id: "USD",
        name: "USD",
        en: "USD",
    }, {
        id: "CNY",
        name: "CNY",
        en: "CNY",
    }],
    "eurCurrency": [{
        id: "EUR",
        name: "EUR",
        en: "EUR",
    }, {
        id: "CNY",
        name: "CNY",
        en: "CNY",
    }],
    "xsCurrency": [{
        id: "CNY",
        name: "CNY",
        en: "CNY",
    }],
    "tradeType": [{
        id: "AGENT",
        name: "代销",
        en: "agent",
    }, {
        id: "DEALER",
        name: "经销",
        en: "dealer",
    }],
    "onShelves": [{
        id: "1",
        name: "上架",
        en: "grounding",
    }, {
        id: "0",
        name: "下架",
        en: "undercarriage",
    }],
    "limitPay": [{
            id: "0",
            name: "无",
            en: "no",
        }, {
            id: "no_balance",
            name: "不接受余额支付",
            en: "no_balance",
        },
        // {
        //     id: "no_credit",
        //     name: "不接受信用卡支付",
        //     en: "no_credit",
        // }
    ],
    "classStatus": [{
        id: "1",
        name: "预约",
        en: "1",
    }, {
        id: "2",
        name: "上课",
        en: "2",
    }, {
        id: "3",
        name: "取消",
        en: "3",
    }],
    "postage": [{
        id: 1,
        name: "是",
        en: "yes",
    }, {
        id: 2,
        name: "否",
        en: "no",
    }],
    "number": [{
        id: 2,
        name: 2,
        en: 2,
    }, {
        id: 4,
        name: 4,
        en: 4,
    }, {
        id: 6,
        name: 6,
        en: 6,
    }, {
        id: 8,
        name: 8,
        en: 8,
    }, {
        id: 10,
        name: 10,
        en: 10,
    }],
    "orderType": [{
        id: "0",
        name: "一般订单",
        en: "General order",
    }, {
        id: "1",
        name: "代购订单",
        en: "Indent Order",
    }],
    // "industryCode": [{
    //     id: 1,
    //     name: "各类电商",
    //     en: "各类电商",
    // }, {
    //     id: 2,
    //     name: "餐饮外卖",
    //     en: "餐饮外卖",
    // }, {
    //     id: 3,
    //     name: "美容美发",
    //     en: "美容美发",
    // }, {
    //     id: 4,
    //     name: "线下零售",
    //     en: "线下零售",
    // }, {
    //     id: 5,
    //     name: "小店平台类",
    //     en: "小店平台类",
    // }, {
    //     id: 6,
    //     name: "企业门店",
    //     en: "企业门店",
    // }, {
    //     id: 7,
    //     name: "鲜花蛋糕",
    //     en: "鲜花蛋糕",
    // }, {
    //     id: 8,
    //     name: "水果生鲜",
    //     en: "水果生鲜",
    // }, {
    //     id: 9,
    //     name: "服装鞋包",
    //     en: "服装鞋包",
    // }, {
    //     id: 10,
    //     name: "教育咨询",
    //     en: "教育咨询",
    // }, {
    //     id: 11,
    //     name: "汽车周边",
    //     en: "汽车周边",
    // }, {
    //     id: 12,
    //     name: "家装装饰",
    //     en: "家装装饰",
    // }, {
    //     id: 13,
    //     name: "数码家电",
    //     en: "数码家电",
    // }, {
    //     id: 14,
    //     name: "家居百货",
    //     en: "家居百货",
    // }, {
    //     id: 15,
    //     name: "婚庆服务",
    //     en: "婚庆服务",
    // }, {
    //     id: 16,
    //     name: "婚纱摄影",
    //     en: "婚纱摄影",
    // }, {
    //     id: 17,
    //     name: "旅游票务",
    //     en: "旅游票务",
    // }, {
    //     id: 18,
    //     name: "医疗健康",
    //     en: "医疗健康",
    // }, {
    //     id: 19,
    //     name: "运动健身",
    //     en: "运动健身",
    // }, {
    //     id: 20,
    //     name: "洗浴按摩",
    //     en: "洗浴按摩",
    // }, {
    //     id: 21,
    //     name: "酒店服务",
    //     en: "酒店服务",
    // }, {
    //     id: 22,
    //     name: "家政服务",
    //     en: "家政服务",
    // }, {
    //     id: 23,
    //     name: "茶水饮品",
    //     en: "茶水饮品",
    // }, {
    //     id: 24,
    //     name: "酒吧娱乐",
    //     en: "酒吧娱乐",
    // }, {
    //     id: 25,
    //     name: "宠物用品",
    //     en: "宠物用品",
    // }, {
    //     id: 26,
    //     name: "广告设计",
    //     en: "广告设计",
    // }],
    "choice": [{
        id: 0,
        name: "否",
        en: "no",
    }, {
        id: 1,
        name: "是",
        en: "yes",
    }, ],
    "visible": [{
        id: 1,
        name: "是",
        en: "yes",
    }, {
        id: 2,
        name: "否",
        en: "no",
    }],
    "orderFrom": [{
        id: "1",
        name: "WEB",
        en: "WEB",
    }, {
        id: "2",
        name: "mobile",
        en: "mobile",
    }, {
        id: "3",
        name: "android",
        en: "android",
    }, {
        id: "4",
        name: "ios",
        en: "ios",
    }],
    "storePaytype": [{
        id: "1",
        name: "普通商户",
        en: "普通商户",
    }, {
        id: "2",
        name: "特约商户",
        en: "特约商户",
    }, {
        id: "3",
        name: "手工转账支付",
        en: "手工转账支付",
    }, {
        id: "4",
        name: "澳洲皇家支付",
        en: "澳洲皇家支付",
    }, {
        id: "5",
        name: "欧洲Yaband支付",
        en: "欧洲Yaband支付",
    }, {
        id: "6",
        name: "dahlpay支付",
        en: "dahlpay支付",
    }, {
        id: "7",
        name: "supay支付",
        en: "supay支付",
    }, {
        id: "8",
        name: "GMS支付",
        en: "GMS支付",
    }, {
        id: "9",
        name: "华融支付",
        en: "华融支付",
    }, {
        id: "10",
        name: "银联支付",
        en: "银联支付",
    }, {
        id: "11",
        name: "兆丰支付",
        en: "兆丰支付",
    }, {
        id: "12",
        name: "钱海支付",
        en: "钱海支付",
    }, {
        id: "13",
        name: "Qcurepay支付",
        en: "Qcurepay支付",
    }, {
        id: "14",
        name: "新生支付",
        en: "新生支付",
    }, {
        id: "15",
        name: "全球支付仓",
        en: "全球支付仓"
    }, {
        id: "16",
        name: "新银联支付",
        en: "新银联支付"
    }],
    "typeId": [{
        id: "1",
        name: "分销",
        en: "distribution",
    }, {
        id: "2",
        name: "自有商品",
        en: "stock owned",
    }],
    "uiModsDft": [{
        id: 1,
        name: "非默认",
        en: "Non default",
    }, {
        id: 2,
        name: "默认",
        en: "default",
    }],
    "wmsType": [{
        id: "Wmstongyong",
        name: "重庆-通用仓",
        en: "1",
    }, {
        id: "Wmspeimi",
        name: "重庆-铁路仓",
        en: "2",
    }, {
        id: "Wmsslgx",
        name: "重庆-丝路广序仓",
        en: "3",
    }, {
        id: "Wmswh",
        name: "威海-威海保税仓",
        en: "4",
    }, {
        id: "WmsSongDao",
        name: "唐山-松岛保税仓",
        en: "5",
    }, {
        id: "WmsQianFeng",
        name: "唐山-乾丰保税仓",
        en: "6",
    }, {
        id: "WmsZhiTong",
        name: "大连-致通保税仓",
        en: "7",
    }, {
        id: "WmsQingDao",
        name: "山东-青岛保税仓",
        en: "8",
    }, {
        id: "WmsZhengZhou",
        name: "河南-郑州保税仓",
        en: "9",
    }, {
        id: "WmsHuanghua",
        name: "长沙-黄花保税仓",
        en: "10",
    }, {
        id: "WmsChengDu",
        name: "成都-成都保税仓",
        en: "11",
    }],
    "isDire": [{
        id: "1",
        name: "是",
        en: "1"
    }, {
        id: "2",
        name: "否",
        en: "2",
    }],
    "signType": [{
        id: "1",
        name: "云加签",
        en: "1"
    }, {
        id: "2",
        name: "Ukey加签",
        en: "2",
    }],
    "shipType": [{
        id: "1",
        name: "中通快递",
        en: "1"
    }, {
        id: "2",
        name: "申通快递",
        en: "2",
    }],
    "stoDire": [{
        id: "1",
        name: "是",
        en: "1"
    }, {
        id: "2",
        name: "否",
        en: "2",
    }],
    "qdDire": [{
        id: "1",
        name: "是",
        en: "1"
    }, {
        id: "2",
        name: "否",
        en: "2",
    }],
    "payType": [{
        id: "1",
        name: "微信报关",
        en: "1",
    }, {
        id: "2",
        name: "银联报关",
        en: "2",
    }],
    "customsType": [{
        id: "CHONGQING",
        name: "重庆",
        en: "CHONGQING",
    }, {
        id: "ZONGSHU",
        name: "海关总署",
        en: "ZONGSHU",
    }, {
        id: "GUANGZHOU_ZS",
        name: "广州",
        en: "GUANGZHOU_ZS",
    }, {
        id: "GUANGZHOU_HP_GJ",
        name: "广州黄埔国检",
        en: "GUANGZHOU_HP_GJ",
    }, {
        id: "GUANGZHOU_NS_GJ",
        name: "广州南沙国检",
        en: "GUANGZHOU_NS_GJ",
    }, {
        id: "HANGZHOU_ZS",
        name: "杭州",
        en: "HANGZHOU_ZS",
    }, {
        id: "NINGBO",
        name: "宁波",
        en: "NINGBO",
    }, {
        id: "ZHENGZHOU_BS",
        name: "郑州",
        en: "ZHENGZHOU_BS",
    }, {
        id: "XIAN",
        name: "西安",
        en: "XIAN",
    }, {
        id: "SHANGHAI_ZS",
        name: "上海",
        en: "SHANGHAI_ZS",
    }, {
        id: "SHENZHEN",
        name: "深圳",
        en: "SHENZHEN",
    }, {
        id: "ZHENGZHOU_ZH_ZS",
        name: "郑州综保",
        en: "ZHENGZHOU_ZH_ZS",
    }, {
        id: "TIANJIN",
        name: "天津",
        en: "TIANJIN",
    }, {
        id: "BEIJING",
        name: "北京",
        en: "BEIJING",
    }],
    "sortlineType": [{
        id: "Wmstongyong",
        name: "重庆-通用仓库",
        en: "1",
    }, {
        id: "Wmspeimi",
        name: "重庆-佩米仓库",
        en: "2",
    }],
    "clickType": [{
        id: "item",
        name: "商品",
        en: "item",
    }, {
        id: "cat",
        name: "类目",
        en: "cat",
    }, {
        id: "page",
        name: "促销活动",
        en: "page",
    }, {
        id: "首页",
        name: "首页",
        en: "首页",
    }, {
        id: "phone",
        name: "电话",
        en: "phone"
    }, {
        id: "yuyue",
        name: "预约",
        en: "yuyue"
    }, {
        id: "yue",
        name: "余额",
        en: "yue"
    }, {
        id: "daili",
        name: "代理",
        en: "daili"
    }, {
        id: "pagelist",
        name: "文章列表",
        en: "pagelist"
    }],
    "aType": [{
            id: "item",
            name: "商品",
            en: "item",
        }, {
            id: "cat",
            name: "类目",
            en: "cat",
        }, {
            id: "page",
            name: "促销活动",
            en: "page",
        }, {
            id: "首页",
            name: "首页",
            en: "首页",
        }, {
            id: "phone",
            name: "电话",
            en: "phone"
        }, {
            id: "kanjia",
            name: "砍价",
            en: "kanjia"
        }, {
            id: "video",
            name: "视频",
            en: "video"
        }, {
            id: "previewImg",
            name: "预览图片",
            en: "previewImg"
        }, {
            id: "kefu",
            name: "客服",
            en: "Customerservice"
        }, {
            id: "kaquan",
            name: "卡券",
            en: "Coupon"
        }, {
            id: "yuyue",
            name: "预约",
            en: "bespeak"
        }, {
            id: "yue",
            name: "余额",
            en: "balance"
        }, {
            id: "daili",
            name: "代理",
            en: "agent"
        }, {
            id: "huodong",
            name: "活动报名",
            en: "activityRegistration"
        }, {
            id: "pagelist",
            name: "文章列表",
            en: "articlelist"
        }, {
            id: "hongbao",
            name: "红包",
            en: "hongbao"
        }, {
            id: "mianfu",
            name: "面付",
            en: "mianfu"
        }, {
            id: "cainum",
            name: "抽奖",
            en: "luckydraw"
        }, {
            id: "kecheng",
            name: "课程",
            en: "classroom"
        }, {
            id: "index1",
            name: "自定义页1页",
            en: "index1"
        }, {
            id: "index2",
            name: "自定义页2页",
            en: "index2"
        }, {
            id: "index3",
            name: "自定义页3页",
            en: "index3"
        }, {
            id: "index4",
            name: "自定义页4页",
            en: "index4"
        },
        {
            id: "index5",
            name: "自定义页5页",
            en: "index5"
        }, {
            id: "index6",
            name: "自定义页6页",
            en: "index6"
        }, {
            id: "index7",
            name: "自定义页7页",
            en: "index7"
        }, {
            id: "index8",
            name: "自定义页8页",
            en: "index8"
        }, {
            id: "index9",
            name: "自定义页9页",
            en: "index9"
        }, {
            id: "index10",
            name: "自定义页10页",
            en: "index10"
        }, {
            id: "expression",
            name: "表白活动",
            en: "expression"
        }, {
            id: "clockOnLeadGift",
            name: "打卡领礼物",
            en: "clockOnLeadGift"
        }, {
            id: "topicTest",
            name: "答题测试",
            en: "topicTest"
        }, {
            id: "activitylist",
            name: "报名活动列表",
            en: "activitylist"
        }, {
            id: "wxXcxJump",
            name: "微信小程序跳转",
            en: "wxXcxJump"
        }, {
            id: "wxmaterial",
            name: "微信公众号",
            en: "wxmaterial"
        }, {
            id: "flop",
            name: "翻牌",
            en: "flop"
        }, {
            id: "caitu",
            name: "看题猜图",
            en: "caitu"
        }, {
            id: "coupons_mjs",
            name: "优惠劵",
            en: "coupons"
        }, {
            id: "newtopic",
            name: "特例答题",
            en: "newtopic"
        }, {
            id: "newdaka",
            name: "特例打卡",
            en: "newdaka"
        }, {
            id: "guanzhuhao",
            name: "关注公众号",
            en: "guanzhuWeChat"
        }, {
            id: "choicestore",
            name: "选择门店列表页",
            en: "choicestore"
        }, {
            id: "choicetab",
            name: "选择标签",
            en: "choicetab"
        }, {
            id: "map",
            name: "地图",
            en: "map"
        }, {
            id: "qiehuanstoreid",
            name: "切换门店",
            en: "switchingStore"
        }
    ],

    "topBarFontColor": [{
        id: "ffffff",
        name: "白色",
        en: "ffffff",
    }, {
        id: "000000",
        name: "黑色",
        en: "000000",
    }],
    "basicsType": [{
        id: "1",
        name: "按周设置",
        en: "1",
    }, {
        id: "2",
        name: "按天设置",
        en: "2",
    }],
    "region": [{
        id: "A",
        name: "A",
        en: "A",
    }, {
        id: "B",
        name: "B",
        en: "B",
    }, {
        id: "C",
        name: "C",
        en: "C",
    }, {
        id: "D",
        name: "D",
        en: "D",
    }],
    "subType": [{
        id: 1,
        name: "普通模板",
        en: "pt",
    }, {
        id: 2,
        name: "小票模板",
        en: "xp"
    }],
    "giftType": [{
        id: 1,
        name: "送礼",
        en: "sl",
    }, {
        id: 2,
        name: "答题",
        en: "dt",
    }, {
        id: 3,
        name: "翻牌",
        en: "fp"
    }, {
        id: 4,
        name: "看题猜图",
        en: "ktct"
    }, {
        id: 5,
        name: "特别答题案例",
        en: "tbdt"
    }, {
        id: 6,
        name: "特例打卡",
        en: "tldk"
    }],
    "giftEffective": [{
        id: 1,
        name: "有效",
        en: "yx",
    }, {
        id: 2,
        name: "无效",
        en: "wx",
    }],
    "mzType": [{
        id: "mjs",
        name: "满就送",
        en: "mjs",
    }],
    "eventType": [{
        id: "1",
        name: "交易支付成功",
        en: "afterpayment",
    }],
    "levelValue": [{
        id: 1,
        name: "一级会员等级值",
        en: "yiji",
    }, {
        id: 2,
        name: "二级会员等级值",
        en: "erji",
    }, {
        id: 3,
        name: "三级会员等级值",
        en: "sanji",
    }, {
        id: 4,
        name: "四级会员等级值",
        en: "siji",
    }, {
        id: 5,
        name: "五级会员等级值",
        en: "wuji",
    }],
    "valuationType": [{
        id: 1,
        name: "按件",
        en: "byPrice",
    }, {
        id: 2,
        name: "按重量",
        en: "ByWeight"
    }, {
        id: 3,
        name: "按体积",
        en: "byVolume"
    }],
    "isMain": [{
        id: 1,
        name: "主店",
        en: "1",
    }, {
        id: 2,
        name: "子店",
        en: "2"
    }],
    "pagePath": [{
        id: "pages/index/index",
        name: "首页",
        en: "home",
    }, {
        id: "pages/order/list/index",
        name: "订单列表",
        en: "order_List_Page",
    }, {
        id: "pages/cart/index",
        name: "购物车",
        en: "cart_List_page",
    }, {
        id: "pages/activity/list/index",
        name: "文章列表",
        en: "page_list",
    }, {
        id: "pages/index1/index",
        name: "自定义页面1",
        en: "custom_Page1"
    }, {
        id: "pages/index2/index",
        name: "自定义页面2",
        en: "custom_Page2"
    }, {
        id: "pages/index3/index",
        name: "自定义页面3",
        en: "custom_Page3"
    }, {
        id: "pages/index4/index",
        name: "自定义页面4",
        en: "custom_Page4"
    }, {
        id: "pages/index5/index",
        name: "自定义页面5",
        en: "custom_Page5"
    }, {
        id: "pages/index6/index",
        name: "自定义页面6",
        en: "custom_Page6"
    }, {
        id: "pages/index7/index",
        name: "自定义页面7",
        en: "custom_Page7"
    }, {
        id: "pages/index8/index",
        name: "自定义页面8",
        en: "custom_Page8"
    }, {
        id: "pages/index9/index",
        name: "自定义页面9",
        en: "custom_Page9"
    }, {
        id: "pages/index10/index",
        name: "自定义页面10",
        en: "custom_Page10"
    }, {
        id: "pages/gift/flop/index",
        name: "翻牌游戏",
        en: "gift_flop"
    }, {
        id: "pages/user/index",
        name: "我的",
        en: "user"
    }, {
        id: "pages/ministore/get/index",
        name: "mini小店",
        en: "ministore_get"
    }, {
        id: "pages/ministore/add/index",
        name: "mini小店注册",
        en: "ministore_add"
    }, {
        id: "pages/huodong/activitylist/index",
        name: "报名活动列表页",
        en: "activity_list"
    }, {
        id: "pages/JR/order/index",
        name: "捷荣",
        en: "jr_order"
    }],
    "orderStatus": [{
        id: "S_ORDER_WAIT_PAYMENT",
        name: "订单待支付",
        en: "S_ORDER_WAIT_PAYMENT"
    }, {
        id: "S_ORDER_WAIT_CONFIRM",
        name: "订单待确认",
        en: "S_ORDER_WAIT_CONFIRM"
    }, {
        id: "S_ORDER_WAIT_DELIVERY",
        name: "订单待发货",
        en: "S_ORDER_WAIT_DELIVERY"
    }, {
        id: "S_ORDER_WAIT_RECEIVE",
        name: "订单配送中",
        en: "S_ORDER_WAIT_RECEIVE"
    }, {
        id: "S_ORDER_WAIT_RATE",
        name: "待评价",
        en: "S_ORDER_WAIT_RATE"
    }, {
        id: "S_ORDER_COMPLETED",
        name: "订单完成",
        en: "S_ORDER_COMPLETED"
    }, {
        id: "S_ORDER_AFTER_SERVICE",
        name: "售后中",
        en: "S_ORDER_AFTER_SERVICE"
    }, {
        id: "S_ORDER_ALREADY_REFUNDED",
        name: "已经退款",
        en: "S_ORDER_ALREADY_REFUNDED"
    }, {
        id: "S_ORDER_CANCEL",
        name: "订单关闭",
        en: "S_ORDER_CANCEL"
    }],
    "trust": [{
        id: 0,
        name: 0,
        en: 0,
    }, {
        id: 1,
        name: 1,
        en: 1
    }, {
        id: 2,
        name: 2,
        en: 2
    }, {
        id: 3,
        name: 3,
        en: 3
    }, {
        id: 4,
        name: 4,
        en: 4
    }, {
        id: 5,
        name: 5,
        en: 5
    }],
    "expirationtTime": [{
        id: 1,
        name: 1,
        en: 1
    }, {
        id: 2,
        name: 2,
        en: 2
    }, {
        id: 3,
        name: 3,
        en: 3
    }, {
        id: 4,
        name: 4,
        en: 4
    }, {
        id: 5,
        name: 5,
        en: 5
    }, {
        id: 6,
        name: 6,
        en: 6
    }, {
        id: 7,
        name: 7,
        en: 7
    }, {
        id: 8,
        name: 8,
        en: 8
    }, {
        id: 9,
        name: 9,
        en: 9
    }, {
        id: 10,
        name: 10,
        en: 10
    }, {
        id: 11,
        name: 11,
        en: 11
    }, {
        id: 12,
        name: 12,
        en: 12
    }, {
        id: 13,
        name: 13,
        en: 13
    }, {
        id: 14,
        name: 14,
        en: 14
    }, {
        id: 15,
        name: 15,
        en: 15
    }, {
        id: 16,
        name: 16,
        en: 16
    }, {
        id: 17,
        name: 17,
        en: 17
    }, {
        id: 18,
        name: 18,
        en: 18
    }, {
        id: 19,
        name: 19,
        en: 19
    }, {
        id: 20,
        name: 20,
        en: 20
    }, {
        id: 21,
        name: 21,
        en: 21
    }, {
        id: 22,
        name: 22,
        en: 22
    }, {
        id: 23,
        name: 23,
        en: 23
    }, {
        id: 24,
        name: 24,
        en: 24
    }],

    // "carrywayType": [{
    //         id: "LTS",
    //         name: "联昊通",
    //         en: "LTS",
    //     }, {
    //         id: "QFKD",
    //         name: "全峰快递",
    //         en: "QFKD",
    //     }, {
    //         id: "SCKJ",
    //         name: "四川快捷",
    //         en: "QFKD",
    //     }, {
    //         id: "UAPEX",
    //         name: "全一快递",
    //         en: "UAPEX",
    //     }, {
    //         id: "BJCS",
    //         name: "城市100",
    //         en: "UAPEX",
    //     }, {
    //         code: "EMS",
    //         name: "EMS",
    //         en: "EMS",
    //     }, {
    //         id: "YTO",
    //         name: "圆通速递",
    //         en: "YTO",
    //     }, {
    //         id: "ZTO",
    //         name: "中通速递",
    //         en: "ZTO",
    //     }, {
    //         id: "HZABC",
    //         name: "杭州爱彼西",
    //         en: "HZABC",
    //     }, {
    //         id: "ZJS",
    //         name: "宅急送",
    //         en: "ZJS",
    //     }, {
    //         id: "YD",
    //         name: "韵达快运",
    //         en: "YD",
    //     }, {
    //         id: "TTKDEX",
    //         name: "海航天天快递",
    //         en: "TTKDEX",
    //     }, {
    //         id: "BEST",
    //         name: "百世物流",
    //         en: "BEST",
    //     }, {
    //         id: "FEDEX",
    //         name: "联邦快递",
    //         en: "FEDEX",
    //     }, {
    //         id: "DBL",
    //         name: "德邦物流",
    //         en: "DBL",
    //     }, {
    //         id: "SHQ",
    //         name: "华强物流",
    //         en: "SHQ",
    //     }, {
    //         code: "WLB-STARS",
    //         name: "星辰急便",
    //         en: "WLB-STARS",
    //     }, {
    //         id: "HTKY",
    //         name: "汇通快运",
    //         en: "HTKY",
    //     }, {
    //         id: "CRE",
    //         name: "中铁快运",
    //         en: "CRE",
    //     }, {
    //         id: "WLB-ABC",
    //         name: "浙江ABC",
    //         en: "WLB-ABC",
    //     }, {
    //         id: "SF",
    //         name: "顺丰速运",
    //         en: "SF",
    //     }, {
    //         id: "CCES",
    //         name: "CCES",
    //         en: "STO",
    //     }, {
    //         id: "STO",
    //         name: "申通快递",
    //         en: "STO",
    //     }, {
    //         id: "ZY",
    //         name: "中远",
    //         en: "ZY",
    //     }, {
    //         id: "LB",
    //         name: "龙邦速递",
    //         en: "LB",
    //     }, {
    //         id: "FAST",
    //         name: "快捷速递",
    //         en: "FAST",
    //     }, {
    //         id: "DFH",
    //         name: "东方汇",
    //         en: "DFH",
    //     }, {
    //         code: "SY",
    //         name: "首业",
    //         en: "SY",
    //     }, {
    //         id: "YC",
    //         name: "远长",
    //         en: "YC",
    //     }, {
    //         id: "YCT",
    //         name: "黑猫宅急便",
    //         en: "YCT",
    //     }, {
    //         id: "XB",
    //         name: "新邦物流",
    //         en: "XB",
    //     }, {
    //         id: "NEDA",
    //         name: "港中能达",
    //         en: "UC",
    //     }, {
    //         id: "UC",
    //         name: "优速物流",
    //         en: "UC",
    //     }, {
    //         id: "QRT",
    //         name: "全日通快递",
    //         en: "QRT",
    //     },
    //     {
    //         id: "ZTO,",
    //         name: "中通快递",
    //         en: "ZTO,",
    //     },
    //     {
    //         id: "DBL",
    //         name: "德邦快递",
    //         en: "DBL",
    //     },
    //     {
    //         id: "JYWL",
    //         name: "佳怡物流",
    //         en: "JYWL",
    //     }, {
    //         id: "SJWL",
    //         name: "商家物流",
    //         en: "SJWL",
    //     }
    // ],
    "xiaopiaoType": [{
        id: "item",
        name: "普通交易",
        en: "item",
    }, {
        id: "baoming",
        name: "活动报名",
        en: "baoming",
    }, {
        id: "mianfu",
        name: "面付订单",
        en: "mianfu",
    }, {
        id: "hotel",
        name: "酒店订单",
        en: "hotel",
    }, {
        id: "balance",
        name: "充值订单",
        en: "balance",
    }, {
        code: "refund",
        name: "退款订单",
        en: "refund",
    }],
    "timeZone": [{
            "id": "Europe\/Andorra",
            "name": "Europe\/Andorra",
            "en": "Europe\/Andorra"
        },
        {
            "id": "Asia\/Dubai",
            "name": "Asia\/Dubai",
            "en": "Asia\/Dubai"
        },
        {
            "id": "Asia\/Kabul",
            "name": "Asia\/Kabul",
            "en": "Asia\/Kabul"
        },
        {
            "id": "America\/Antigua",
            "name": "America\/Antigua",
            "en": "America\/Antigua"
        },
        {
            "id": "America\/Anguilla",
            "name": "America\/Anguilla",
            "en": "America\/Anguilla"
        },
        {
            "id": "Europe\/Tirane",
            "name": "Europe\/Tirane",
            "en": "Europe\/Tirane"
        },
        {
            "id": "Asia\/Yerevan",
            "name": "Asia\/Yerevan",
            "en": "Asia\/Yerevan"
        },
        {
            "id": "Africa\/Luanda",
            "name": "Africa\/Luanda",
            "en": "Africa\/Luanda"
        },
        {
            "id": "Antarctica\/McMurdo",
            "name": "Antarctica\/McMurdo",
            "en": "Antarctica\/McMurdo"
        },
        {
            "id": "Antarctica\/Rothera",
            "name": "Antarctica\/Rothera",
            "en": "Antarctica\/Rothera"
        },
        {
            "id": "Antarctica\/Palmer",
            "name": "Antarctica\/Palmer",
            "en": "Antarctica\/Palmer"
        },
        {
            "id": "Antarctica\/Mawson",
            "name": "Antarctica\/Mawson",
            "en": "Antarctica\/Mawson"
        },
        {
            "id": "Antarctica\/Davis",
            "name": "Antarctica\/Davis",
            "en": "Antarctica\/Davis"
        },
        {
            "id": "Antarctica\/Casey",
            "name": "Antarctica\/Casey",
            "en": "Antarctica\/Casey"
        },
        {
            "id": "Antarctica\/Vostok",
            "name": "Antarctica\/Vostok",
            "en": "Antarctica\/Vostok"
        },
        {
            "id": "Antarctica\/DumontDUrville",
            "name": "Antarctica\/DumontDUrville",
            "en": "Antarctica\/DumontDUrville"
        },
        {
            "id": "Antarctica\/Syowa",
            "name": "Antarctica\/Syowa",
            "en": "Antarctica\/Syowa"
        },
        {
            "id": "Antarctica\/Troll",
            "name": "Antarctica\/Troll",
            "en": "Antarctica\/Troll"
        },
        {
            "id": "America\/Argentina\/Buenos_Aires",
            "name": "America\/Argentina\/Buenos_Aires",
            "en": "America\/Argentina\/Buenos_Aires"
        },
        {
            "id": "America\/Argentina\/Cordoba",
            "name": "America\/Argentina\/Cordoba",
            "en": "America\/Argentina\/Cordoba"
        },
        {
            "id": "America\/Argentina\/Salta",
            "name": "America\/Argentina\/Salta",
            "en": "America\/Argentina\/Salta"
        },
        {
            "id": "America\/Argentina\/Jujuy",
            "name": "America\/Argentina\/Jujuy",
            "en": "America\/Argentina\/Jujuy"
        },
        {
            "id": "America\/Argentina\/Tucuman",
            "name": "America\/Argentina\/Tucuman",
            "en": "America\/Argentina\/Tucuman"
        },
        {
            "id": "America\/Argentina\/Catamarca",
            "name": "America\/Argentina\/Catamarca",
            "en": "America\/Argentina\/Catamarca"
        },
        {
            "id": "America\/Argentina\/La_Rioja",
            "name": "America\/Argentina\/La_Rioja",
            "en": "America\/Argentina\/La_Rioja"
        },
        {
            "id": "America\/Argentina\/San_Juan",
            "name": "America\/Argentina\/San_Juan",
            "en": "America\/Argentina\/San_Juan"
        },
        {
            "id": "America\/Argentina\/Mendoza",
            "name": "America\/Argentina\/Mendoza",
            "en": "America\/Argentina\/Mendoza"
        },
        {
            "id": "America\/Argentina\/San_Luis",
            "name": "America\/Argentina\/San_Luis",
            "en": "America\/Argentina\/San_Luis"
        },
        {
            "id": "America\/Argentina\/Rio_Gallegos",
            "name": "America\/Argentina\/Rio_Gallegos",
            "en": "America\/Argentina\/Rio_Gallegos"
        },
        {
            "id": "America\/Argentina\/Ushuaia",
            "name": "America\/Argentina\/Ushuaia",
            "en": "America\/Argentina\/Ushuaia"
        },
        {
            "id": "Pacific\/Pago_Pago",
            "name": "Pacific\/Pago_Pago",
            "en": "Pacific\/Pago_Pago"
        },
        {
            "id": "Europe\/Vienna",
            "name": "Europe\/Vienna",
            "en": "Europe\/Vienna"
        },
        {
            "id": "Australia\/Lord_Howe",
            "name": "Australia\/Lord_Howe",
            "en": "Australia\/Lord_Howe"
        },
        {
            "id": "Antarctica\/Macquarie",
            "name": "Antarctica\/Macquarie",
            "en": "Antarctica\/Macquarie"
        },
        {
            "id": "Australia\/Hobart",
            "name": "Australia\/Hobart",
            "en": "Australia\/Hobart"
        },
        {
            "id": "Australia\/Currie",
            "name": "Australia\/Currie",
            "en": "Australia\/Currie"
        },
        {
            "id": "Australia\/Melbourne",
            "name": "Australia\/Melbourne",
            "en": "Australia\/Melbourne"
        },
        {
            "id": "Australia\/Sydney",
            "name": "Australia\/Sydney",
            "en": "Australia\/Sydney"
        },
        {
            "id": "Australia\/Broken_Hill",
            "name": "Australia\/Broken_Hill",
            "en": "Australia\/Broken_Hill"
        },
        {
            "id": "Australia\/Brisbane",
            "name": "Australia\/Brisbane",
            "en": "Australia\/Brisbane"
        },
        {
            "id": "Australia\/Lindeman",
            "name": "Australia\/Lindeman",
            "en": "Australia\/Lindeman"
        },
        {
            "id": "Australia\/Adelaide",
            "name": "Australia\/Adelaide",
            "en": "Australia\/Adelaide"
        },
        {
            "id": "Australia\/Darwin",
            "name": "Australia\/Darwin",
            "en": "Australia\/Darwin"
        },
        {
            "id": "Australia\/Perth",
            "name": "Australia\/Perth",
            "en": "Australia\/Perth"
        },
        {
            "id": "Australia\/Eucla",
            "name": "Australia\/Eucla",
            "en": "Australia\/Eucla"
        },
        {
            "id": "America\/Aruba",
            "name": "America\/Aruba",
            "en": "America\/Aruba"
        },
        {
            "id": "Europe\/Mariehamn",
            "name": "Europe\/Mariehamn",
            "en": "Europe\/Mariehamn"
        },
        {
            "id": "Asia\/Baku",
            "name": "Asia\/Baku",
            "en": "Asia\/Baku"
        },
        {
            "id": "Europe\/Sarajevo",
            "name": "Europe\/Sarajevo",
            "en": "Europe\/Sarajevo"
        },
        {
            "id": "America\/Barbados",
            "name": "America\/Barbados",
            "en": "America\/Barbados"
        },
        {
            "id": "Asia\/Dhaka",
            "name": "Asia\/Dhaka",
            "en": "Asia\/Dhaka"
        },
        {
            "id": "Europe\/Brussels",
            "name": "Europe\/Brussels",
            "en": "Europe\/Brussels"
        },
        {
            "id": "Africa\/Ouagadougou",
            "name": "Africa\/Ouagadougou",
            "en": "Africa\/Ouagadougou"
        },
        {
            "id": "Europe\/Sofia",
            "name": "Europe\/Sofia",
            "en": "Europe\/Sofia"
        },
        {
            "id": "Asia\/Bahrain",
            "name": "Asia\/Bahrain",
            "en": "Asia\/Bahrain"
        },
        {
            "id": "Africa\/Bujumbura",
            "name": "Africa\/Bujumbura",
            "en": "Africa\/Bujumbura"
        },
        {
            "id": "Africa\/Porto-Novo",
            "name": "Africa\/Porto-Novo",
            "en": "Africa\/Porto-Novo"
        },
        {
            "id": "America\/St_Barthelemy",
            "name": "America\/St_Barthelemy",
            "en": "America\/St_Barthelemy"
        },
        {
            "id": "Atlantic\/Bermuda",
            "name": "Atlantic\/Bermuda",
            "en": "Atlantic\/Bermuda"
        },
        {
            "id": "Asia\/Brunei",
            "name": "Asia\/Brunei",
            "en": "Asia\/Brunei"
        },
        {
            "id": "America\/La_Paz",
            "name": "America\/La_Paz",
            "en": "America\/La_Paz"
        },
        {
            "id": "America\/Kralendijk",
            "name": "America\/Kralendijk",
            "en": "America\/Kralendijk"
        },
        {
            "id": "America\/Noronha",
            "name": "America\/Noronha",
            "en": "America\/Noronha"
        },
        {
            "id": "America\/Belem",
            "name": "America\/Belem",
            "en": "America\/Belem"
        },
        {
            "id": "America\/Fortaleza",
            "name": "America\/Fortaleza",
            "en": "America\/Fortaleza"
        },
        {
            "id": "America\/Recife",
            "name": "America\/Recife",
            "en": "America\/Recife"
        },
        {
            "id": "America\/Araguaina",
            "name": "America\/Araguaina",
            "en": "America\/Araguaina"
        },
        {
            "id": "America\/Maceio",
            "name": "America\/Maceio",
            "en": "America\/Maceio"
        },
        {
            "id": "America\/Bahia",
            "name": "America\/Bahia",
            "en": "America\/Bahia"
        },
        {
            "id": "America\/Sao_Paulo",
            "name": "America\/Sao_Paulo",
            "en": "America\/Sao_Paulo"
        },
        {
            "id": "America\/Campo_Grande",
            "name": "America\/Campo_Grande",
            "en": "America\/Campo_Grande"
        },
        {
            "id": "America\/Cuiaba",
            "name": "America\/Cuiaba",
            "en": "America\/Cuiaba"
        },
        {
            "id": "America\/Santarem",
            "name": "America\/Santarem",
            "en": "America\/Santarem"
        },
        {
            "id": "America\/Porto_Velho",
            "name": "America\/Porto_Velho",
            "en": "America\/Porto_Velho"
        },
        {
            "id": "America\/Boa_Vista",
            "name": "America\/Boa_Vista",
            "en": "America\/Boa_Vista"
        },
        {
            "id": "America\/Manaus",
            "name": "America\/Manaus",
            "en": "America\/Manaus"
        },
        {
            "id": "America\/Eirunepe",
            "name": "America\/Eirunepe",
            "en": "America\/Eirunepe"
        },
        {
            "id": "America\/Rio_Branco",
            "name": "America\/Rio_Branco",
            "en": "America\/Rio_Branco"
        },
        {
            "id": "America\/Nassau",
            "name": "America\/Nassau",
            "en": "America\/Nassau"
        },
        {
            "id": "Asia\/Thimphu",
            "name": "Asia\/Thimphu",
            "en": "Asia\/Thimphu"
        },
        {
            "id": "Africa\/Gaborone",
            "name": "Africa\/Gaborone",
            "en": "Africa\/Gaborone"
        },
        {
            "id": "Europe\/Minsk",
            "name": "Europe\/Minsk",
            "en": "Europe\/Minsk"
        },
        {
            "id": "America\/Belize",
            "name": "America\/Belize",
            "en": "America\/Belize"
        },
        {
            "id": "America\/St_Johns",
            "name": "America\/St_Johns",
            "en": "America\/St_Johns"
        },
        {
            "id": "America\/Halifax",
            "name": "America\/Halifax",
            "en": "America\/Halifax"
        },
        {
            "id": "America\/Glace_Bay",
            "name": "America\/Glace_Bay",
            "en": "America\/Glace_Bay"
        },
        {
            "id": "America\/Moncton",
            "name": "America\/Moncton",
            "en": "America\/Moncton"
        },
        {
            "id": "America\/Goose_Bay",
            "name": "America\/Goose_Bay",
            "en": "America\/Goose_Bay"
        },
        {
            "id": "America\/Blanc-Sablon",
            "name": "America\/Blanc-Sablon",
            "en": "America\/Blanc-Sablon"
        },
        {
            "id": "America\/Toronto",
            "name": "America\/Toronto",
            "en": "America\/Toronto"
        },
        {
            "id": "America\/Nipigon",
            "name": "America\/Nipigon",
            "en": "America\/Nipigon"
        },
        {
            "id": "America\/Thunder_Bay",
            "name": "America\/Thunder_Bay",
            "en": "America\/Thunder_Bay"
        },
        {
            "id": "America\/Iqaluit",
            "name": "America\/Iqaluit",
            "en": "America\/Iqaluit"
        },
        {
            "id": "America\/Pangnirtung",
            "name": "America\/Pangnirtung",
            "en": "America\/Pangnirtung"
        },
        {
            "id": "America\/Resolute",
            "name": "America\/Resolute",
            "en": "America\/Resolute"
        },
        {
            "id": "America\/Atikokan",
            "name": "America\/Atikokan",
            "en": "America\/Atikokan"
        },
        {
            "id": "America\/Rankin_Inlet",
            "name": "America\/Rankin_Inlet",
            "en": "America\/Rankin_Inlet"
        },
        {
            "id": "America\/Winnipeg",
            "name": "America\/Winnipeg",
            "en": "America\/Winnipeg"
        },
        {
            "id": "America\/Rainy_River",
            "name": "America\/Rainy_River",
            "en": "America\/Rainy_River"
        },
        {
            "id": "America\/Regina",
            "name": "America\/Regina",
            "en": "America\/Regina"
        },
        {
            "id": "America\/Swift_Current",
            "name": "America\/Swift_Current",
            "en": "America\/Swift_Current"
        },
        {
            "id": "America\/Edmonton",
            "name": "America\/Edmonton",
            "en": "America\/Edmonton"
        },
        {
            "id": "America\/Cambridge_Bay",
            "name": "America\/Cambridge_Bay",
            "en": "America\/Cambridge_Bay"
        },
        {
            "id": "America\/Yellowknife",
            "name": "America\/Yellowknife",
            "en": "America\/Yellowknife"
        },
        {
            "id": "America\/Inuvik",
            "name": "America\/Inuvik",
            "en": "America\/Inuvik"
        },
        {
            "id": "America\/Creston",
            "name": "America\/Creston",
            "en": "America\/Creston"
        },
        {
            "id": "America\/Dawson_Creek",
            "name": "America\/Dawson_Creek",
            "en": "America\/Dawson_Creek"
        },
        {
            "id": "America\/Vancouver",
            "name": "America\/Vancouver",
            "en": "America\/Vancouver"
        },
        {
            "id": "America\/Whitehorse",
            "name": "America\/Whitehorse",
            "en": "America\/Whitehorse"
        },
        {
            "id": "America\/Dawson",
            "name": "America\/Dawson",
            "en": "America\/Dawson"
        },
        {
            "id": "Indian\/Cocos",
            "name": "Indian\/Cocos",
            "en": "Indian\/Cocos"
        },
        {
            "id": "Africa\/Kinshasa",
            "name": "Africa\/Kinshasa",
            "en": "Africa\/Kinshasa"
        },
        {
            "id": "Africa\/Lubumbashi",
            "name": "Africa\/Lubumbashi",
            "en": "Africa\/Lubumbashi"
        },
        {
            "id": "Africa\/Bangui",
            "name": "Africa\/Bangui",
            "en": "Africa\/Bangui"
        },
        {
            "id": "Africa\/Brazzaville",
            "name": "Africa\/Brazzaville",
            "en": "Africa\/Brazzaville"
        },
        {
            "id": "Europe\/Zurich",
            "name": "Europe\/Zurich",
            "en": "Europe\/Zurich"
        },
        {
            "id": "Africa\/Abidjan",
            "name": "Africa\/Abidjan",
            "en": "Africa\/Abidjan"
        },
        {
            "id": "Pacific\/Rarotonga",
            "name": "Pacific\/Rarotonga",
            "en": "Pacific\/Rarotonga"
        },
        {
            "id": "America\/Santiago",
            "name": "America\/Santiago",
            "en": "America\/Santiago"
        },
        {
            "id": "Pacific\/Easter",
            "name": "Pacific\/Easter",
            "en": "Pacific\/Easter"
        },
        {
            "id": "Africa\/Douala",
            "name": "Africa\/Douala",
            "en": "Africa\/Douala"
        },
        {
            "id": "Asia\/Shanghai",
            "name": "Asia\/Shanghai",
            "en": "Asia\/Shanghai"
        },
        {
            "id": "Asia\/Harbin",
            "name": "Asia\/Harbin",
            "en": "Asia\/Harbin"
        },
        {
            "id": "Asia\/Chongqing",
            "name": "Asia\/Chongqing",
            "en": "Asia\/Chongqing"
        },
        {
            "id": "Asia\/Urumqi",
            "name": "Asia\/Urumqi",
            "en": "Asia\/Urumqi"
        },
        {
            "id": "Asia\/Kashgar",
            "name": "Asia\/Kashgar",
            "en": "Asia\/Kashgar"
        },
        {
            "id": "America\/Bogota",
            "name": "America\/Bogota",
            "en": "America\/Bogota"
        },
        {
            "id": "America\/Costa_Rica",
            "name": "America\/Costa_Rica",
            "en": "America\/Costa_Rica"
        },
        {
            "id": "America\/Havana",
            "name": "America\/Havana",
            "en": "America\/Havana"
        },
        {
            "id": "Atlantic\/Cape_Verde",
            "name": "Atlantic\/Cape_Verde",
            "en": "Atlantic\/Cape_Verde"
        },
        {
            "id": "America\/Curacao",
            "name": "America\/Curacao",
            "en": "America\/Curacao"
        },
        {
            "id": "Indian\/Christmas",
            "name": "Indian\/Christmas",
            "en": "Indian\/Christmas"
        },
        {
            "id": "Asia\/Nicosia",
            "name": "Asia\/Nicosia",
            "en": "Asia\/Nicosia"
        },
        {
            "id": "Europe\/Prague",
            "name": "Europe\/Prague",
            "en": "Europe\/Prague"
        },
        {
            "id": "Europe\/Berlin",
            "name": "Europe\/Berlin",
            "en": "Europe\/Berlin"
        },
        {
            "id": "Europe\/Busingen",
            "name": "Europe\/Busingen",
            "en": "Europe\/Busingen"
        },
        {
            "id": "Africa\/Djibouti",
            "name": "Africa\/Djibouti",
            "en": "Africa\/Djibouti"
        },
        {
            "id": "Europe\/Copenhagen",
            "name": "Europe\/Copenhagen",
            "en": "Europe\/Copenhagen"
        },
        {
            "id": "America\/Dominica",
            "name": "America\/Dominica",
            "en": "America\/Dominica"
        },
        {
            "id": "America\/Santo_Domingo",
            "name": "America\/Santo_Domingo",
            "en": "America\/Santo_Domingo"
        },
        {
            "id": "Africa\/Algiers",
            "name": "Africa\/Algiers",
            "en": "Africa\/Algiers"
        },
        {
            "id": "America\/Guayaquil",
            "name": "America\/Guayaquil",
            "en": "America\/Guayaquil"
        },
        {
            "id": "Pacific\/Galapagos",
            "name": "Pacific\/Galapagos",
            "en": "Pacific\/Galapagos"
        },
        {
            "id": "Europe\/Tallinn",
            "name": "Europe\/Tallinn",
            "en": "Europe\/Tallinn"
        },
        {
            "id": "Africa\/Cairo",
            "name": "Africa\/Cairo",
            "en": "Africa\/Cairo"
        },
        {
            "id": "Africa\/El_Aaiun",
            "name": "Africa\/El_Aaiun",
            "en": "Africa\/El_Aaiun"
        },
        {
            "id": "Africa\/Asmara",
            "name": "Africa\/Asmara",
            "en": "Africa\/Asmara"
        },
        {
            "id": "Europe\/Madrid",
            "name": "Europe\/Madrid",
            "en": "Europe\/Madrid"
        },
        {
            "id": "Africa\/Ceuta",
            "name": "Africa\/Ceuta",
            "en": "Africa\/Ceuta"
        },
        {
            "id": "Atlantic\/Canary",
            "name": "Atlantic\/Canary",
            "en": "Atlantic\/Canary"
        },
        {
            "id": "Africa\/Addis_Ababa",
            "name": "Africa\/Addis_Ababa",
            "en": "Africa\/Addis_Ababa"
        },
        {
            "id": "Europe\/Helsinki",
            "name": "Europe\/Helsinki",
            "en": "Europe\/Helsinki"
        },
        {
            "id": "Pacific\/Fiji",
            "name": "Pacific\/Fiji",
            "en": "Pacific\/Fiji"
        },
        {
            "id": "Atlantic\/Stanley",
            "name": "Atlantic\/Stanley",
            "en": "Atlantic\/Stanley"
        },
        {
            "id": "Pacific\/Chuuk",
            "name": "Pacific\/Chuuk",
            "en": "Pacific\/Chuuk"
        },
        {
            "id": "Pacific\/Pohnpei",
            "name": "Pacific\/Pohnpei",
            "en": "Pacific\/Pohnpei"
        },
        {
            "id": "Pacific\/Kosrae",
            "name": "Pacific\/Kosrae",
            "en": "Pacific\/Kosrae"
        },
        {
            "id": "Atlantic\/Faroe",
            "name": "Atlantic\/Faroe",
            "en": "Atlantic\/Faroe"
        },
        {
            "id": "Europe\/Paris",
            "name": "Europe\/Paris",
            "en": "Europe\/Paris"
        },
        {
            "id": "Africa\/Libreville",
            "name": "Africa\/Libreville",
            "en": "Africa\/Libreville"
        },
        {
            "id": "Europe\/London",
            "name": "Europe\/London",
            "en": "Europe\/London"
        },
        {
            "id": "America\/Grenada",
            "name": "America\/Grenada",
            "en": "America\/Grenada"
        },
        {
            "id": "Asia\/Tbilisi",
            "name": "Asia\/Tbilisi",
            "en": "Asia\/Tbilisi"
        },
        {
            "id": "America\/Cayenne",
            "name": "America\/Cayenne",
            "en": "America\/Cayenne"
        },
        {
            "id": "Europe\/Guernsey",
            "name": "Europe\/Guernsey",
            "en": "Europe\/Guernsey"
        },
        {
            "id": "Africa\/Accra",
            "name": "Africa\/Accra",
            "en": "Africa\/Accra"
        },
        {
            "id": "Europe\/Gibraltar",
            "name": "Europe\/Gibraltar",
            "en": "Europe\/Gibraltar"
        },
        {
            "id": "America\/Godthab",
            "name": "America\/Godthab",
            "en": "America\/Godthab"
        },
        {
            "id": "America\/Danmarkshavn",
            "name": "America\/Danmarkshavn",
            "en": "America\/Danmarkshavn"
        },
        {
            "id": "America\/Scoresbysund",
            "name": "America\/Scoresbysund",
            "en": "America\/Scoresbysund"
        },
        {
            "id": "America\/Thule",
            "name": "America\/Thule",
            "en": "America\/Thule"
        },
        {
            "id": "Africa\/Banjul",
            "name": "Africa\/Banjul",
            "en": "Africa\/Banjul"
        },
        {
            "id": "Africa\/Conakry",
            "name": "Africa\/Conakry",
            "en": "Africa\/Conakry"
        },
        {
            "id": "America\/Guadeloupe",
            "name": "America\/Guadeloupe",
            "en": "America\/Guadeloupe"
        },
        {
            "id": "Africa\/Malabo",
            "name": "Africa\/Malabo",
            "en": "Africa\/Malabo"
        },
        {
            "id": "Europe\/Athens",
            "name": "Europe\/Athens",
            "en": "Europe\/Athens"
        },
        {
            "id": "Atlantic\/South_Georgia",
            "name": "Atlantic\/South_Georgia",
            "en": "Atlantic\/South_Georgia"
        },
        {
            "id": "America\/Guatemala",
            "name": "America\/Guatemala",
            "en": "America\/Guatemala"
        },
        {
            "id": "Pacific\/Guam",
            "name": "Pacific\/Guam",
            "en": "Pacific\/Guam"
        },
        {
            "id": "Africa\/Bissau",
            "name": "Africa\/Bissau",
            "en": "Africa\/Bissau"
        },
        {
            "id": "America\/Guyana",
            "name": "America\/Guyana",
            "en": "America\/Guyana"
        },
        {
            "id": "Asia\/Hong_Kong",
            "name": "Asia\/Hong_Kong",
            "en": "Asia\/Hong_Kong"
        },
        {
            "id": "America\/Tegucigalpa",
            "name": "America\/Tegucigalpa",
            "en": "America\/Tegucigalpa"
        },
        {
            "id": "Europe\/Zagreb",
            "name": "Europe\/Zagreb",
            "en": "Europe\/Zagreb"
        },
        {
            "id": "America\/Port-au-Prince",
            "name": "America\/Port-au-Prince",
            "en": "America\/Port-au-Prince"
        },
        {
            "id": "Europe\/Budapest",
            "name": "Europe\/Budapest",
            "en": "Europe\/Budapest"
        },
        {
            "id": "Asia\/Jakarta",
            "name": "Asia\/Jakarta",
            "en": "Asia\/Jakarta"
        },
        {
            "id": "Asia\/Pontianak",
            "name": "Asia\/Pontianak",
            "en": "Asia\/Pontianak"
        },
        {
            "id": "Asia\/Makassar",
            "name": "Asia\/Makassar",
            "en": "Asia\/Makassar"
        },
        {
            "id": "Asia\/Jayapura",
            "name": "Asia\/Jayapura",
            "en": "Asia\/Jayapura"
        },
        {
            "id": "Europe\/Dublin",
            "name": "Europe\/Dublin",
            "en": "Europe\/Dublin"
        },
        {
            "id": "Asia\/Jerusalem",
            "name": "Asia\/Jerusalem",
            "en": "Asia\/Jerusalem"
        },
        {
            "id": "Europe\/Isle_of_Man",
            "name": "Europe\/Isle_of_Man",
            "en": "Europe\/Isle_of_Man"
        },
        {
            "id": "Asia\/Kolkata",
            "name": "Asia\/Kolkata",
            "en": "Asia\/Kolkata"
        },
        {
            "id": "Indian\/Chagos",
            "name": "Indian\/Chagos",
            "en": "Indian\/Chagos"
        },
        {
            "id": "Asia\/Baghdad",
            "name": "Asia\/Baghdad",
            "en": "Asia\/Baghdad"
        },
        {
            "id": "Asia\/Tehran",
            "name": "Asia\/Tehran",
            "en": "Asia\/Tehran"
        },
        {
            "id": "Atlantic\/Reykjavik",
            "name": "Atlantic\/Reykjavik",
            "en": "Atlantic\/Reykjavik"
        },
        {
            "id": "Europe\/Rome",
            "name": "Europe\/Rome",
            "en": "Europe\/Rome"
        },
        {
            "id": "Europe\/Jersey",
            "name": "Europe\/Jersey",
            "en": "Europe\/Jersey"
        },
        {
            "id": "America\/Jamaica",
            "name": "America\/Jamaica",
            "en": "America\/Jamaica"
        },
        {
            "id": "Asia\/Amman",
            "name": "Asia\/Amman",
            "en": "Asia\/Amman"
        },
        {
            "id": "Asia\/Tokyo",
            "name": "Asia\/Tokyo",
            "en": "Asia\/Tokyo"
        },
        {
            "id": "Africa\/Nairobi",
            "name": "Africa\/Nairobi",
            "en": "Africa\/Nairobi"
        },
        {
            "id": "Asia\/Bishkek",
            "name": "Asia\/Bishkek",
            "en": "Asia\/Bishkek"
        },
        {
            "id": "Asia\/Phnom_Penh",
            "name": "Asia\/Phnom_Penh",
            "en": "Asia\/Phnom_Penh"
        },
        {
            "id": "Pacific\/Tarawa",
            "name": "Pacific\/Tarawa",
            "en": "Pacific\/Tarawa"
        },
        {
            "id": "Pacific\/Enderbury",
            "name": "Pacific\/Enderbury",
            "en": "Pacific\/Enderbury"
        },
        {
            "id": "Pacific\/Kiritimati",
            "name": "Pacific\/Kiritimati",
            "en": "Pacific\/Kiritimati"
        },
        {
            "id": "Indian\/Comoro",
            "name": "Indian\/Comoro",
            "en": "Indian\/Comoro"
        },
        {
            "id": "America\/St_Kitts",
            "name": "America\/St_Kitts",
            "en": "America\/St_Kitts"
        },
        {
            "id": "Asia\/Pyongyang",
            "name": "Asia\/Pyongyang",
            "en": "Asia\/Pyongyang"
        },
        {
            "id": "Asia\/Seoul",
            "name": "Asia\/Seoul",
            "en": "Asia\/Seoul"
        },
        {
            "id": "Asia\/Kuwait",
            "name": "Asia\/Kuwait",
            "en": "Asia\/Kuwait"
        },
        {
            "id": "America\/Cayman",
            "name": "America\/Cayman",
            "en": "America\/Cayman"
        },
        {
            "id": "Asia\/Almaty",
            "name": "Asia\/Almaty",
            "en": "Asia\/Almaty"
        },
        {
            "id": "Asia\/Qyzylorda",
            "name": "Asia\/Qyzylorda",
            "en": "Asia\/Qyzylorda"
        },
        {
            "id": "Asia\/Aqtobe",
            "name": "Asia\/Aqtobe",
            "en": "Asia\/Aqtobe"
        },
        {
            "id": "Asia\/Aqtau",
            "name": "Asia\/Aqtau",
            "en": "Asia\/Aqtau"
        },
        {
            "id": "Asia\/Oral",
            "name": "Asia\/Oral",
            "en": "Asia\/Oral"
        },
        {
            "id": "Asia\/Vientiane",
            "name": "Asia\/Vientiane",
            "en": "Asia\/Vientiane"
        },
        {
            "id": "Asia\/Beirut",
            "name": "Asia\/Beirut",
            "en": "Asia\/Beirut"
        },
        {
            "id": "America\/St_Lucia",
            "name": "America\/St_Lucia",
            "en": "America\/St_Lucia"
        },
        {
            "id": "Europe\/Vaduz",
            "name": "Europe\/Vaduz",
            "en": "Europe\/Vaduz"
        },
        {
            "id": "Asia\/Colombo",
            "name": "Asia\/Colombo",
            "en": "Asia\/Colombo"
        },
        {
            "id": "Africa\/Monrovia",
            "name": "Africa\/Monrovia",
            "en": "Africa\/Monrovia"
        },
        {
            "id": "Africa\/Maseru",
            "name": "Africa\/Maseru",
            "en": "Africa\/Maseru"
        },
        {
            "id": "Europe\/Vilnius",
            "name": "Europe\/Vilnius",
            "en": "Europe\/Vilnius"
        },
        {
            "id": "Europe\/Luxembourg",
            "name": "Europe\/Luxembourg",
            "en": "Europe\/Luxembourg"
        },
        {
            "id": "Europe\/Riga",
            "name": "Europe\/Riga",
            "en": "Europe\/Riga"
        },
        {
            "id": "Africa\/Tripoli",
            "name": "Africa\/Tripoli",
            "en": "Africa\/Tripoli"
        },
        {
            "id": "Africa\/Casablanca",
            "name": "Africa\/Casablanca",
            "en": "Africa\/Casablanca"
        },
        {
            "id": "Europe\/Monaco",
            "name": "Europe\/Monaco",
            "en": "Europe\/Monaco"
        },
        {
            "id": "Europe\/Chisinau",
            "name": "Europe\/Chisinau",
            "en": "Europe\/Chisinau"
        },
        {
            "id": "Europe\/Podgorica",
            "name": "Europe\/Podgorica",
            "en": "Europe\/Podgorica"
        },
        {
            "id": "America\/Marigot",
            "name": "America\/Marigot",
            "en": "America\/Marigot"
        },
        {
            "id": "Indian\/Antananarivo",
            "name": "Indian\/Antananarivo",
            "en": "Indian\/Antananarivo"
        },
        {
            "id": "Pacific\/Majuro",
            "name": "Pacific\/Majuro",
            "en": "Pacific\/Majuro"
        },
        {
            "id": "Pacific\/Kwajalein",
            "name": "Pacific\/Kwajalein",
            "en": "Pacific\/Kwajalein"
        },
        {
            "id": "Europe\/Skopje",
            "name": "Europe\/Skopje",
            "en": "Europe\/Skopje"
        },
        {
            "id": "Africa\/Bamako",
            "name": "Africa\/Bamako",
            "en": "Africa\/Bamako"
        },
        {
            "id": "Asia\/Rangoon",
            "name": "Asia\/Rangoon",
            "en": "Asia\/Rangoon"
        },
        {
            "id": "Asia\/Ulaanbaatar",
            "name": "Asia\/Ulaanbaatar",
            "en": "Asia\/Ulaanbaatar"
        },
        {
            "id": "Asia\/Hovd",
            "name": "Asia\/Hovd",
            "en": "Asia\/Hovd"
        },
        {
            "id": "Asia\/Choibalsan",
            "name": "Asia\/Choibalsan",
            "en": "Asia\/Choibalsan"
        },
        {
            "id": "Asia\/Macau",
            "name": "Asia\/Macau",
            "en": "Asia\/Macau"
        },
        {
            "id": "Pacific\/Saipan",
            "name": "Pacific\/Saipan",
            "en": "Pacific\/Saipan"
        },
        {
            "id": "America\/Martinique",
            "name": "America\/Martinique",
            "en": "America\/Martinique"
        },
        {
            "id": "Africa\/Nouakchott",
            "name": "Africa\/Nouakchott",
            "en": "Africa\/Nouakchott"
        },
        {
            "id": "America\/Montserrat",
            "name": "America\/Montserrat",
            "en": "America\/Montserrat"
        },
        {
            "id": "Europe\/Malta",
            "name": "Europe\/Malta",
            "en": "Europe\/Malta"
        },
        {
            "id": "Indian\/Mauritius",
            "name": "Indian\/Mauritius",
            "en": "Indian\/Mauritius"
        },
        {
            "id": "Indian\/Maldives",
            "name": "Indian\/Maldives",
            "en": "Indian\/Maldives"
        },
        {
            "id": "Africa\/Blantyre",
            "name": "Africa\/Blantyre",
            "en": "Africa\/Blantyre"
        },
        {
            "id": "America\/Mexico_City",
            "name": "America\/Mexico_City",
            "en": "America\/Mexico_City"
        },
        {
            "id": "America\/Cancun",
            "name": "America\/Cancun",
            "en": "America\/Cancun"
        },
        {
            "id": "America\/Merida",
            "name": "America\/Merida",
            "en": "America\/Merida"
        },
        {
            "id": "America\/Monterrey",
            "name": "America\/Monterrey",
            "en": "America\/Monterrey"
        },
        {
            "id": "America\/Matamoros",
            "name": "America\/Matamoros",
            "en": "America\/Matamoros"
        },
        {
            "id": "America\/Mazatlan",
            "name": "America\/Mazatlan",
            "en": "America\/Mazatlan"
        },
        {
            "id": "America\/Chihuahua",
            "name": "America\/Chihuahua",
            "en": "America\/Chihuahua"
        },
        {
            "id": "America\/Ojinaga",
            "name": "America\/Ojinaga",
            "en": "America\/Ojinaga"
        },
        {
            "id": "America\/Hermosillo",
            "name": "America\/Hermosillo",
            "en": "America\/Hermosillo"
        },
        {
            "id": "America\/Tijuana",
            "name": "America\/Tijuana",
            "en": "America\/Tijuana"
        },
        {
            "id": "America\/Santa_Isabel",
            "name": "America\/Santa_Isabel",
            "en": "America\/Santa_Isabel"
        },
        {
            "id": "America\/Bahia_Banderas",
            "name": "America\/Bahia_Banderas",
            "en": "America\/Bahia_Banderas"
        },
        {
            "id": "Asia\/Kuala_Lumpur",
            "name": "Asia\/Kuala_Lumpur",
            "en": "Asia\/Kuala_Lumpur"
        },
        {
            "id": "Asia\/Kuching",
            "name": "Asia\/Kuching",
            "en": "Asia\/Kuching"
        },
        {
            "id": "Africa\/Maputo",
            "name": "Africa\/Maputo",
            "en": "Africa\/Maputo"
        },
        {
            "id": "Africa\/Windhoek",
            "name": "Africa\/Windhoek",
            "en": "Africa\/Windhoek"
        },
        {
            "id": "Pacific\/Noumea",
            "name": "Pacific\/Noumea",
            "en": "Pacific\/Noumea"
        },
        {
            "id": "Africa\/Niamey",
            "name": "Africa\/Niamey",
            "en": "Africa\/Niamey"
        },
        {
            "id": "Pacific\/Norfolk",
            "name": "Pacific\/Norfolk",
            "en": "Pacific\/Norfolk"
        },
        {
            "id": "Africa\/Lagos",
            "name": "Africa\/Lagos",
            "en": "Africa\/Lagos"
        },
        {
            "id": "America\/Managua",
            "name": "America\/Managua",
            "en": "America\/Managua"
        },
        {
            "id": "Europe\/Amsterdam",
            "name": "Europe\/Amsterdam",
            "en": "Europe\/Amsterdam"
        },
        {
            "id": "Europe\/Oslo",
            "name": "Europe\/Oslo",
            "en": "Europe\/Oslo"
        },
        {
            "id": "Asia\/Kathmandu",
            "name": "Asia\/Kathmandu",
            "en": "Asia\/Kathmandu"
        },
        {
            "id": "Pacific\/Nauru",
            "name": "Pacific\/Nauru",
            "en": "Pacific\/Nauru"
        },
        {
            "id": "Pacific\/Niue",
            "name": "Pacific\/Niue",
            "en": "Pacific\/Niue"
        },
        {
            "id": "Pacific\/Auckland",
            "name": "Pacific\/Auckland",
            "en": "Pacific\/Auckland"
        },
        {
            "id": "Pacific\/Chatham",
            "name": "Pacific\/Chatham",
            "en": "Pacific\/Chatham"
        },
        {
            "id": "Asia\/Muscat",
            "name": "Asia\/Muscat",
            "en": "Asia\/Muscat"
        },
        {
            "id": "America\/Panama",
            "name": "America\/Panama",
            "en": "America\/Panama"
        },
        {
            "id": "America\/Lima",
            "name": "America\/Lima",
            "en": "America\/Lima"
        },
        {
            "id": "Pacific\/Tahiti",
            "name": "Pacific\/Tahiti",
            "en": "Pacific\/Tahiti"
        },
        {
            "id": "Pacific\/Marquesas",
            "name": "Pacific\/Marquesas",
            "en": "Pacific\/Marquesas"
        },
        {
            "id": "Pacific\/Gambier",
            "name": "Pacific\/Gambier",
            "en": "Pacific\/Gambier"
        },
        {
            "id": "Pacific\/Port_Moresby",
            "name": "Pacific\/Port_Moresby",
            "en": "Pacific\/Port_Moresby"
        },
        {
            "id": "Asia\/Manila",
            "name": "Asia\/Manila",
            "en": "Asia\/Manila"
        },
        {
            "id": "Asia\/Karachi",
            "name": "Asia\/Karachi",
            "en": "Asia\/Karachi"
        },
        {
            "id": "Europe\/Warsaw",
            "name": "Europe\/Warsaw",
            "en": "Europe\/Warsaw"
        },
        {
            "id": "America\/Miquelon",
            "name": "America\/Miquelon",
            "en": "America\/Miquelon"
        },
        {
            "id": "Pacific\/Pitcairn",
            "name": "Pacific\/Pitcairn",
            "en": "Pacific\/Pitcairn"
        },
        {
            "id": "America\/Puerto_Rico",
            "name": "America\/Puerto_Rico",
            "en": "America\/Puerto_Rico"
        },
        {
            "id": "Asia\/Gaza",
            "name": "Asia\/Gaza",
            "en": "Asia\/Gaza"
        },
        {
            "id": "Asia\/Hebron",
            "name": "Asia\/Hebron",
            "en": "Asia\/Hebron"
        },
        {
            "id": "Europe\/Lisbon",
            "name": "Europe\/Lisbon",
            "en": "Europe\/Lisbon"
        },
        {
            "id": "Atlantic\/Madeira",
            "name": "Atlantic\/Madeira",
            "en": "Atlantic\/Madeira"
        },
        {
            "id": "Atlantic\/Azores",
            "name": "Atlantic\/Azores",
            "en": "Atlantic\/Azores"
        },
        {
            "id": "Pacific\/Palau",
            "name": "Pacific\/Palau",
            "en": "Pacific\/Palau"
        },
        {
            "id": "America\/Asuncion",
            "name": "America\/Asuncion",
            "en": "America\/Asuncion"
        },
        {
            "id": "Asia\/Qatar",
            "name": "Asia\/Qatar",
            "en": "Asia\/Qatar"
        },
        {
            "id": "Indian\/Reunion",
            "name": "Indian\/Reunion",
            "en": "Indian\/Reunion"
        },
        {
            "id": "Europe\/Bucharest",
            "name": "Europe\/Bucharest",
            "en": "Europe\/Bucharest"
        },
        {
            "id": "Europe\/Belgrade",
            "name": "Europe\/Belgrade",
            "en": "Europe\/Belgrade"
        },
        {
            "id": "Europe\/Kaliningrad",
            "name": "Europe\/Kaliningrad",
            "en": "Europe\/Kaliningrad"
        },
        {
            "id": "Europe\/Moscow",
            "name": "Europe\/Moscow",
            "en": "Europe\/Moscow"
        },
        {
            "id": "Europe\/Volgograd",
            "name": "Europe\/Volgograd",
            "en": "Europe\/Volgograd"
        },
        {
            "id": "Europe\/Samara",
            "name": "Europe\/Samara",
            "en": "Europe\/Samara"
        },
        {
            "id": "Europe\/Simferopol",
            "name": "Europe\/Simferopol",
            "en": "Europe\/Simferopol"
        },
        {
            "id": "Asia\/Yekaterinburg",
            "name": "Asia\/Yekaterinburg",
            "en": "Asia\/Yekaterinburg"
        },
        {
            "id": "Asia\/Omsk",
            "name": "Asia\/Omsk",
            "en": "Asia\/Omsk"
        },
        {
            "id": "Asia\/Novosibirsk",
            "name": "Asia\/Novosibirsk",
            "en": "Asia\/Novosibirsk"
        },
        {
            "id": "Asia\/Novokuznetsk",
            "name": "Asia\/Novokuznetsk",
            "en": "Asia\/Novokuznetsk"
        },
        {
            "id": "Asia\/Krasnoyarsk",
            "name": "Asia\/Krasnoyarsk",
            "en": "Asia\/Krasnoyarsk"
        },
        {
            "id": "Asia\/Irkutsk",
            "name": "Asia\/Irkutsk",
            "en": "Asia\/Irkutsk"
        },
        {
            "id": "Asia\/Yakutsk",
            "name": "Asia\/Yakutsk",
            "en": "Asia\/Yakutsk"
        },
        {
            "id": "Asia\/Khandyga",
            "name": "Asia\/Khandyga",
            "en": "Asia\/Khandyga"
        },
        {
            "id": "Asia\/Vladivostok",
            "name": "Asia\/Vladivostok",
            "en": "Asia\/Vladivostok"
        },
        {
            "id": "Asia\/Sakhalin",
            "name": "Asia\/Sakhalin",
            "en": "Asia\/Sakhalin"
        },
        {
            "id": "Asia\/Ust-Nera",
            "name": "Asia\/Ust-Nera",
            "en": "Asia\/Ust-Nera"
        },
        {
            "id": "Asia\/Magadan",
            "name": "Asia\/Magadan",
            "en": "Asia\/Magadan"
        },
        {
            "id": "Asia\/Kamchatka",
            "name": "Asia\/Kamchatka",
            "en": "Asia\/Kamchatka"
        },
        {
            "id": "Asia\/Anadyr",
            "name": "Asia\/Anadyr",
            "en": "Asia\/Anadyr"
        },
        {
            "id": "Africa\/Kigali",
            "name": "Africa\/Kigali",
            "en": "Africa\/Kigali"
        },
        {
            "id": "Asia\/Riyadh",
            "name": "Asia\/Riyadh",
            "en": "Asia\/Riyadh"
        },
        {
            "id": "Pacific\/Guadalcanal",
            "name": "Pacific\/Guadalcanal",
            "en": "Pacific\/Guadalcanal"
        },
        {
            "id": "Indian\/Mahe",
            "name": "Indian\/Mahe",
            "en": "Indian\/Mahe"
        },
        {
            "id": "Africa\/Khartoum",
            "name": "Africa\/Khartoum",
            "en": "Africa\/Khartoum"
        },
        {
            "id": "Europe\/Stockholm",
            "name": "Europe\/Stockholm",
            "en": "Europe\/Stockholm"
        },
        {
            "id": "Asia\/Singapore",
            "name": "Asia\/Singapore",
            "en": "Asia\/Singapore"
        },
        {
            "id": "Atlantic\/St_Helena",
            "name": "Atlantic\/St_Helena",
            "en": "Atlantic\/St_Helena"
        },
        {
            "id": "Europe\/Ljubljana",
            "name": "Europe\/Ljubljana",
            "en": "Europe\/Ljubljana"
        },
        {
            "id": "Arctic\/Longyearbyen",
            "name": "Arctic\/Longyearbyen",
            "en": "Arctic\/Longyearbyen"
        },
        {
            "id": "Europe\/Bratislava",
            "name": "Europe\/Bratislava",
            "en": "Europe\/Bratislava"
        },
        {
            "id": "Africa\/Freetown",
            "name": "Africa\/Freetown",
            "en": "Africa\/Freetown"
        },
        {
            "id": "Europe\/San_Marino",
            "name": "Europe\/San_Marino",
            "en": "Europe\/San_Marino"
        },
        {
            "id": "Africa\/Dakar",
            "name": "Africa\/Dakar",
            "en": "Africa\/Dakar"
        },
        {
            "id": "Africa\/Mogadishu",
            "name": "Africa\/Mogadishu",
            "en": "Africa\/Mogadishu"
        },
        {
            "id": "America\/Paramaribo",
            "name": "America\/Paramaribo",
            "en": "America\/Paramaribo"
        },
        {
            "id": "Africa\/Juba",
            "name": "Africa\/Juba",
            "en": "Africa\/Juba"
        },
        {
            "id": "Africa\/Sao_Tome",
            "name": "Africa\/Sao_Tome",
            "en": "Africa\/Sao_Tome"
        },
        {
            "id": "America\/El_Salvador",
            "name": "America\/El_Salvador",
            "en": "America\/El_Salvador"
        },
        {
            "id": "America\/Lower_Princes",
            "name": "America\/Lower_Princes",
            "en": "America\/Lower_Princes"
        },
        {
            "id": "Asia\/Damascus",
            "name": "Asia\/Damascus",
            "en": "Asia\/Damascus"
        },
        {
            "id": "Africa\/Mbabane",
            "name": "Africa\/Mbabane",
            "en": "Africa\/Mbabane"
        },
        {
            "id": "America\/Grand_Turk",
            "name": "America\/Grand_Turk",
            "en": "America\/Grand_Turk"
        },
        {
            "id": "Africa\/Ndjamena",
            "name": "Africa\/Ndjamena",
            "en": "Africa\/Ndjamena"
        },
        {
            "id": "Indian\/Kerguelen",
            "name": "Indian\/Kerguelen",
            "en": "Indian\/Kerguelen"
        },
        {
            "id": "Africa\/Lome",
            "name": "Africa\/Lome",
            "en": "Africa\/Lome"
        },
        {
            "id": "Asia\/Bangkok",
            "name": "Asia\/Bangkok",
            "en": "Asia\/Bangkok"
        },
        {
            "id": "Asia\/Dushanbe",
            "name": "Asia\/Dushanbe",
            "en": "Asia\/Dushanbe"
        },
        {
            "id": "Pacific\/Fakaofo",
            "name": "Pacific\/Fakaofo",
            "en": "Pacific\/Fakaofo"
        },
        {
            "id": "Asia\/Dili",
            "name": "Asia\/Dili",
            "en": "Asia\/Dili"
        },
        {
            "id": "Asia\/Ashgabat",
            "name": "Asia\/Ashgabat",
            "en": "Asia\/Ashgabat"
        },
        {
            "id": "Africa\/Tunis",
            "name": "Africa\/Tunis",
            "en": "Africa\/Tunis"
        },
        {
            "id": "Pacific\/Tongatapu",
            "name": "Pacific\/Tongatapu",
            "en": "Pacific\/Tongatapu"
        },
        {
            "id": "Europe\/Istanbul",
            "name": "Europe\/Istanbul",
            "en": "Europe\/Istanbul"
        },
        {
            "id": "America\/Port_of_Spain",
            "name": "America\/Port_of_Spain",
            "en": "America\/Port_of_Spain"
        },
        {
            "id": "Pacific\/Funafuti",
            "name": "Pacific\/Funafuti",
            "en": "Pacific\/Funafuti"
        },
        {
            "id": "Asia\/Taipei",
            "name": "Asia\/Taipei",
            "en": "Asia\/Taipei"
        },
        {
            "id": "Africa\/Dar_es_Salaam",
            "name": "Africa\/Dar_es_Salaam",
            "en": "Africa\/Dar_es_Salaam"
        },
        {
            "id": "Europe\/Kiev",
            "name": "Europe\/Kiev",
            "en": "Europe\/Kiev"
        },
        {
            "id": "Europe\/Uzhgorod",
            "name": "Europe\/Uzhgorod",
            "en": "Europe\/Uzhgorod"
        },
        {
            "id": "Europe\/Zaporozhye",
            "name": "Europe\/Zaporozhye",
            "en": "Europe\/Zaporozhye"
        },
        {
            "id": "Africa\/Kampala",
            "name": "Africa\/Kampala",
            "en": "Africa\/Kampala"
        },
        {
            "id": "Pacific\/Johnston",
            "name": "Pacific\/Johnston",
            "en": "Pacific\/Johnston"
        },
        {
            "id": "Pacific\/Midway",
            "name": "Pacific\/Midway",
            "en": "Pacific\/Midway"
        },
        {
            "id": "Pacific\/Wake",
            "name": "Pacific\/Wake",
            "en": "Pacific\/Wake"
        },
        {
            "id": "America\/New_York",
            "name": "America\/New_York",
            "en": "America\/New_York"
        },
        {
            "id": "America\/Detroit",
            "name": "America\/Detroit",
            "en": "America\/Detroit"
        },
        {
            "id": "America\/Kentucky\/Louisville",
            "name": "America\/Kentucky\/Louisville",
            "en": "America\/Kentucky\/Louisville"
        },
        {
            "id": "America\/Kentucky\/Monticello",
            "name": "America\/Kentucky\/Monticello",
            "en": "America\/Kentucky\/Monticello"
        },
        {
            "id": "America\/Indiana\/Indianapolis",
            "name": "America\/Indiana\/Indianapolis",
            "en": "America\/Indiana\/Indianapolis"
        },
        {
            "id": "America\/Indiana\/Vincennes",
            "name": "America\/Indiana\/Vincennes",
            "en": "America\/Indiana\/Vincennes"
        },
        {
            "id": "America\/Indiana\/Winamac",
            "name": "America\/Indiana\/Winamac",
            "en": "America\/Indiana\/Winamac"
        },
        {
            "id": "America\/Indiana\/Marengo",
            "name": "America\/Indiana\/Marengo",
            "en": "America\/Indiana\/Marengo"
        },
        {
            "id": "America\/Indiana\/Petersburg",
            "name": "America\/Indiana\/Petersburg",
            "en": "America\/Indiana\/Petersburg"
        },
        {
            "id": "America\/Indiana\/Vevay",
            "name": "America\/Indiana\/Vevay",
            "en": "America\/Indiana\/Vevay"
        },
        {
            "id": "America\/Chicago",
            "name": "America\/Chicago",
            "en": "America\/Chicago"
        },
        {
            "id": "America\/Indiana\/Tell_City",
            "name": "America\/Indiana\/Tell_City",
            "en": "America\/Indiana\/Tell_City"
        },
        {
            "id": "America\/Indiana\/Knox",
            "name": "America\/Indiana\/Knox",
            "en": "America\/Indiana\/Knox"
        },
        {
            "id": "America\/Menominee",
            "name": "America\/Menominee",
            "en": "America\/Menominee"
        },
        {
            "id": "America\/North_Dakota\/Center",
            "name": "America\/North_Dakota\/Center",
            "en": "America\/North_Dakota\/Center"
        },
        {
            "id": "America\/North_Dakota\/New_Salem",
            "name": "America\/North_Dakota\/New_Salem",
            "en": "America\/North_Dakota\/New_Salem"
        },
        {
            "id": "America\/North_Dakota\/Beulah",
            "name": "America\/North_Dakota\/Beulah",
            "en": "America\/North_Dakota\/Beulah"
        },
        {
            "id": "America\/Denver",
            "name": "America\/Denver",
            "en": "America\/Denver"
        },
        {
            "id": "America\/Boise",
            "name": "America\/Boise",
            "en": "America\/Boise"
        },
        {
            "id": "America\/Phoenix",
            "name": "America\/Phoenix",
            "en": "America\/Phoenix"
        },
        {
            "id": "America\/Los_Angeles",
            "name": "America\/Los_Angeles",
            "en": "America\/Los_Angeles"
        },
        {
            "id": "America\/Anchorage",
            "name": "America\/Anchorage",
            "en": "America\/Anchorage"
        },
        {
            "id": "America\/Juneau",
            "name": "America\/Juneau",
            "en": "America\/Juneau"
        },
        {
            "id": "America\/Sitka",
            "name": "America\/Sitka",
            "en": "America\/Sitka"
        },
        {
            "id": "America\/Yakutat",
            "name": "America\/Yakutat",
            "en": "America\/Yakutat"
        },
        {
            "id": "America\/Nome",
            "name": "America\/Nome",
            "en": "America\/Nome"
        },
        {
            "id": "America\/Adak",
            "name": "America\/Adak",
            "en": "America\/Adak"
        },
        {
            "id": "America\/Metlakatla",
            "name": "America\/Metlakatla",
            "en": "America\/Metlakatla"
        },
        {
            "id": "Pacific\/Honolulu",
            "name": "Pacific\/Honolulu",
            "en": "Pacific\/Honolulu"
        },
        {
            "id": "America\/Montevideo",
            "name": "America\/Montevideo",
            "en": "America\/Montevideo"
        },
        {
            "id": "Asia\/Samarkand",
            "name": "Asia\/Samarkand",
            "en": "Asia\/Samarkand"
        },
        {
            "id": "Asia\/Tashkent",
            "name": "Asia\/Tashkent",
            "en": "Asia\/Tashkent"
        },
        {
            "id": "Europe\/Vatican",
            "name": "Europe\/Vatican",
            "en": "Europe\/Vatican"
        },
        {
            "id": "America\/St_Vincent",
            "name": "America\/St_Vincent",
            "en": "America\/St_Vincent"
        },
        {
            "id": "America\/Caracas",
            "name": "America\/Caracas",
            "en": "America\/Caracas"
        },
        {
            "id": "America\/Tortola",
            "name": "America\/Tortola",
            "en": "America\/Tortola"
        },
        {
            "id": "America\/St_Thomas",
            "name": "America\/St_Thomas",
            "en": "America\/St_Thomas"
        },
        {
            "id": "Asia\/Ho_Chi_Minh",
            "name": "Asia\/Ho_Chi_Minh",
            "en": "Asia\/Ho_Chi_Minh"
        },
        {
            "id": "Pacific\/Efate",
            "name": "Pacific\/Efate",
            "en": "Pacific\/Efate"
        },
        {
            "id": "Pacific\/Wallis",
            "name": "Pacific\/Wallis",
            "en": "Pacific\/Wallis"
        },
        {
            "id": "Pacific\/Apia",
            "name": "Pacific\/Apia",
            "en": "Pacific\/Apia"
        },
        {
            "id": "Asia\/Aden",
            "name": "Asia\/Aden",
            "en": "Asia\/Aden"
        },
        {
            "id": "Indian\/Mayotte",
            "name": "Indian\/Mayotte",
            "en": "Indian\/Mayotte"
        },
        {
            "id": "Africa\/Johannesburg",
            "name": "Africa\/Johannesburg",
            "en": "Africa\/Johannesburg"
        },
        {
            "id": "Africa\/Lusaka",
            "name": "Africa\/Lusaka",
            "en": "Africa\/Lusaka"
        },
        {
            "id": "Africa\/Harare",
            "name": "Africa\/Harare",
            "en": "Africa\/Harare"
        },
        {
            "id": "America\/Montreal",
            "name": "America\/Montreal",
            "en": "America\/Montreal"
        }
    ],
    "goodPage": [{
        id: 1,
        name: "单列商品",
        en: "singleColumnGoodsPage",
    }, {
        id: 2,
        name: "双列商品列表",
        en: "DoubleColumnGoodsPage",
    }, {
        id: 3,
        name: "三列商品列表",
        en: "ThreeColumnGoodsPage",
    }, ],
    "peisongJiange": [{
        id: 15,
        name: "15分钟",
        en: "15 minutes",
    }, {
        id: 20,
        name: "20分钟",
        en: "20 minutes",
    }, {
        id: 25,
        name: "25分钟",
        en: "25 minutes",
    }, {
        id: 30,
        name: "30分钟",
        en: "30 minutes",
    }],
    "formType": [{
        id: "order",
        name: "配送订单类型",
        en: "order",
    }, {
        id: "pickpoint",
        name: "自提订单类型",
        en: "pickpoint",
    }, {
        id: "order1",
        name: "保税备货配送订单类型",
        en: "order1",
    }, {
        id: "pickpoint1",
        name: "保税备货自提订单类型",
        en: "pickpoint1",
    }, {
        id: "order2",
        name: "保税直邮配送订单类型",
        en: "order2",
    }, {
        id: "pickpoint2",
        name: "保税直邮自提订单类型",
        en: "pickpoint2",
    }, {
        id: "order3",
        name: "海外直邮配送订单类型",
        en: "order3",
    }, {
        id: "pickpoint3",
        name: "海外直邮自提订单类型",
        en: "pickpoint3",
    }, {
        id: "baoming",
        name: "报名活动",
        en: "baoming",
    }, {
        id: "hotel",
        name: "酒店类型",
        en: "hotel",
    }, {
        id: "diaochawenjuan",
        name: "调查问卷",
        en: "diaochawenjuan",
    }],
    "itemType": [{
        id: "0",
        name: "普通商品",
        en: "zero",
    }, {
        id: "1",
        name: "保税备货",
        en: "one",
    }, {
        id: "2",
        name: "保税直邮",
        en: "two",
    }, {
        id: "3",
        name: "个人行邮",
        en: "three",
    }],
    "pickpointCountry": [{
        id: "CN",
        name: "中国",
        en: "CN",
    }, {
        id: "CNNULLGPS",
        name: "中国（手动填写）",
        en: "CNNULLGPS",
    }, {
        id: "NL",
        name: "荷兰",
        en: "NL",
    }, {
        id: "AU",
        name: "澳洲",
        en: "AU",
    }, {
        id: "US",
        name: "美国",
        en: "US",
    }, {
        id: "RU",
        name: "俄罗斯",
        en: "RU",
    }, {
        id: "UA",
        name: "乌克兰",
        en: "UA",
    }, {
        id: "JP",
        name: "日本",
        en: "JP",
    }, {
        id: "KR",
        name: "韩国",
        en: "KR",
    }, {
        id: "MY",
        name: "马来西亚",
        en: "MY",
    }, {
        id: "HW",
        name: "海外",
        en: "HW",
    }],
    "isvirtual": [{
        id: true,
        name: "是",
        en: "yes",
    }, {
        id: false,
        name: "否",
        en: "no",
    }],
    "customsOrderType": [{
            id: "HZW",
            name: "孩子王",
            en: "HZW",
        },
        {
            id: "TB",
            name: "淘宝",
            en: "TB",
        },
        {
            id: "PDD",
            name: "拼多多",
            en: "PDD",
        }, {
            id: "YUOU",
            name: "渝欧",
            en: "YUOU",
        }, {
            id: "HPK",
            name: "海拍客",
            en: "HPK",
        }
    ],
    "storeapplyShenhe": [{
        id: 0,
        name: "审核中",
        en: "auditing",
    }, {
        id: 1,
        name: "审核成功",
        en: "sucess",
    }, {
        id: 2,
        name: "审核失败",
        en: "fail",
    }],
    "catortag": [{
        id: true,
        name: "类目",
        en: "category",
    }, {
        id: false,
        name: "标签",
        en: "tag",
    }],
    "fzGroupType": [{
            id: "1",
            name: "大黄蜂",
            en: "1",
        },
        {
            id: "2",
            name: "全店",
            en: "2",
        }
    ],
    "fzMoneyType": [{
            id: "1",
            name: "按比例分账",
            en: "1",
        },
        {
            id: "2",
            name: "按固定金额分账",
            en: "2",
        }
    ],
    "templateCategory": [{
        id: "order",
        name: "订单",
        en: "order",
    }],
    "templateType": [{
        id: "QRTZ",
        name: "订单确认通知",
        en: "QRTZ",
    }, {
        id: "FHTX",
        name: "订单发货提醒",
        en: "FHTX",
    }, {
        id: "PJTX",
        name: "订单评价提醒",
        en: "PJTX",
    }]
};


_.map(alldata, function(zdata, dname) {
    angular.module('webApp').directive(dname, ['dataService', '$compile',
        function(dataService, $compile) {
            return {
                restrict: 'E',
                require: 'ngModel',
                scope: {
                    ngModel: '=',
                    stype: "@", //是否只输出文字
                    dft: "@", //是否设置初始化值
                    backcall: "&",
                    class: "@",
                    style: "@"
                },

                template: '<span ng-if="stype" ng-bind="show()"></span><span ng-show="!stype"><select ng-model="tmpNgModel" ng-change="change(tmpNgModel)"  ng-options="option.name for option in elmAry track by option.key" class="{{class}}" style="{{style}}" > </select></span>',
                controller: ['$templateCache', '$rootScope', '$scope', '$timeout',
                    function($templateCache, $rootScope, $scope, $timeout) {
                        $scope.tmpNgModel = {};
                        //                             console.error("ngModelffffffffffffffffffffff",$scope.ngModel);
                        $scope.show = function() {
                            if (window.localStorage.lang == 'zh-cn' || !window.localStorage.lang) {
                                return $scope.tmpNgModel.name || $scope.ngModel;
                            } else {
                                return $scope.tmpNgModel.en || $scope.ngModel;
                            }
                        }

                        function initData() {
                            $scope.elmAry = {};
                            var n = 1;
                            _.map(zdata, function(v, k) {
                                v.key = "v" + n;
                                $scope.elmAry[k] = v;
                                n++;
                            });


                        }
                        initData();

                        $scope.change = function(model) {
                            // console.error("...................", model);
                            //                                 console.error("scope.backcall", $scope.backcall);
                            if ($scope.backcall) {
                                $scope.backcall({
                                    "data": model.id
                                });
                            }
                        }

                        $scope.checkValue = function(id) {
                            //                                 console.error("idididididid",id);
                            _.map($scope.elmAry, function(a) {
                                if (a.id == id) {
                                    $scope.tmpNgModel = a;
                                }
                            });
                            if (!id) {
                                if ($scope.dft) {
                                    $scope.tmpNgModel = $scope.elmAry[0];
                                    $scope.ngModel = $scope.tmpNgModel.id;
                                }
                            }
                            // console.error("$scope.ngModel ",$scope.ngModel );
                        }
                    }
                ],

                link: function(scope, element, attrs, ctrl) {
                    scope.$watch('tmpNgModel', function(newValue, oldValue, scope) {
                        if (newValue) {

                            ctrl.$setViewValue(newValue.id);
                            // console.error("$scope.ngModel ",scope.ngModel ,newValue);
                        }
                    });

                    // scope.$watch('elmAry', function(newValue, oldValue, scope) {
                    //     if (attrs.dft && newValue) {
                    //         var x = _.values(newValue);
                    //         if (x[0]) {
                    //             scope.tmpNgModel = x[0];
                    //             ctrl.$setViewValue(x[0].id);
                    //         }
                    //     }
                    // });

                    //初始化
                    ctrl.$render = function() {
                        //                             console.log("ctrl.$viewValue)",ctrl.$viewValue);
                        scope.checkValue(ctrl.$viewValue);
                    };
                }
            }
        }
    ]);
});

//动态状态查询
var dallstatus = {
    // "storeList": "storeGet",
    "wxappEdition": "isvWxappGet",
    "deskType": "tabletypeGet",
    "schemaList": "schemaGet",
    "fxgradeList": "fxgradeGet",
    "fxproductList": "fxproductGet",
    "shenpiList": "fxgradeGet",
    "pickpointList": "pickpointGet",
    "gzhsucatGet": "gzhsucatGet",
    "resitemList": "resitemGet",
    "classcategoryList": "classCategoryGet",
    "carrywayType": "carrywayTypeGet",
    "memberLevel": "memberlevelGet",
    "industryCode": "getlindustrycode",
    "customFormName": "customformGet",
    "fzgroupGet": "getStoredistributionGroup",
    "itemUnicode": "getItemUnCode",
    "customsCode": "getCustomsCode",
    "portCode": "getPortCode",
    "customsGetwuliu": "yuouWuliu",
    "cateList": "categoryGet",
    "itemCountryCode": "getCountryCode"
        // "xiaopiaoList": "wxTagsGet",
};

_.map(dallstatus, function(zstatus, dname) {
    angular.module('webApp').directive(dname, ['dataService', '$compile',
        function(dataService, $compile) {
            return {
                restrict: 'E',
                require: 'ngModel',
                scope: {
                    ngModel: '=',
                    stype: "@", //是否只输出文字
                    dft: "@", //是否设置初始化值
                    obj: "@",
                    home: "@",
                    backcall: "&"
                },

                template: '<span ng-if="stype" ><span ng-show="tmpNgModel.name" ng-bind="show()"></span><span ng-show="!tmpNgModel.name">{{ngModel|translate}}</span></span><span ng-show="!stype"><select ng-model="tmpNgModel" ng-options="option.name for option in elmAry track by option.id" style="max-width:100px;" > </select></span>',
                controller: ['$templateCache', '$rootScope', '$scope', '$timeout', 'sessionService',
                    function($templateCache, $rootScope, $scope, $timeout, sessionService) {
                        $scope.tmpNgModel = {};
                        $scope.show = function() {
                            if (window.localStorage.lang == 'zh-cn' || !window.localStorage.lang) {
                                return $scope.tmpNgModel.name || $scope.ngModel;
                            } else {
                                return $scope.tmpNgModel.en || $scope.ngModel;
                            }
                        }
                        $rootScope.$on('event:store-update', function() {
                            initData();
                        });

                        function initData() {
                            var query = {};
                            if (zstatus == 'isvWxappGet' && $rootScope.store_id != 1) {
                                query = {
                                    query: {
                                        statu: 1
                                    }
                                };
                            }
                            if (zstatus == 'getItemUnCode') {
                                query = {
                                    page_size: 500
                                };
                            }
                            if (zstatus == 'getCountryCode') {
                                query = {
                                    page_size: 500
                                };
                            }
                            if (zstatus == 'storeGet') {
                                if ($scope.ngModel && !$scope.dft) {
                                    query = {
                                        query: {
                                            store_id: $scope.ngModel,
                                        }
                                    };
                                } else {
                                    query = {
                                        page_size: 100
                                    };
                                }
                            }
                            if (zstatus == 'schemaGet') {
                                query = {
                                    query: {
                                        store_id: $rootScope.store_id
                                    }
                                };
                            }
                            if (zstatus == 'fxgradeGet') {
                                query = {
                                    content: {
                                        store_id: $rootScope.store_id,
                                        page_size: 100
                                    }
                                };
                            }
                            if (zstatus == 'fxproductGet') {
                                query = {
                                    content: {
                                        store_id: $rootScope.store_id
                                    }
                                };
                            }
                            if (zstatus == 'pickpointGet') {
                                query = {
                                    content: {
                                        store_id: $rootScope.store_id,
                                        page_size: 100
                                    }
                                };
                            }
                            if (zstatus == 'classCategoryGet') {
                                query = {
                                    content: {
                                        store_id: $rootScope.store_id,
                                        page_size: 100
                                    }
                                };
                            }
                            if (zstatus == 'tabletypeGet') {
                                query = {
                                    content: {
                                        store_id: $rootScope.store_id,
                                        page_size: 100
                                    }
                                };
                            }
                            if (zstatus == 'resitemGet') {
                                query = {
                                    store_id: $rootScope.store_id,
                                    page_size: 100
                                };
                            }
                            if (zstatus == 'customformGet') {
                                query = {
                                    store_id: $rootScope.store_id,
                                    type: "baoming",
                                    page_size: 100
                                };
                            }
                            if (zstatus == 'fzgroupGet') {
                                query = {
                                    store_id: $rootScope.store_id,
                                    page_size: 100
                                };
                            }
                            if (zstatus == 'categoryGet') {
                                query = {
                                    query: {
                                        store_id: $rootScope.store_id,
                                    },
                                    page_size: 100
                                };
                            }
                            dataService[zstatus](query).then(function(data) {
                                // return false;
                                if (data.store) {
                                    var user = sessionService.get("tokenUser");
                                    $scope.elmAry = [];
                                    _.map(data.store, function(v, k) {
                                        if (user.Role == 4) {
                                            // if (v.store_id == 1) {
                                            $scope.elmAry.push({
                                                id: v.store_id,
                                                name: v.name,
                                                code: v.industry_code,
                                                partner_id: v.partner_id,
                                                en: v.name,
                                            });
                                            // }
                                        } else {
                                            $scope.elmAry.push({
                                                id: v.store_id,
                                                name: v.name,
                                                code: v.industry_code,
                                                partner_id: v.partner_id,
                                                en: v.name,
                                            });
                                        }
                                    });
                                }
                                if (data.wxapps && data.total_count != 0) {
                                    $scope.elmAry = [{
                                        id: data.wxapps[0].appid,
                                        name: data.wxapps[0].version + "(" + data.wxapps[0].template_id + ")(" + data.wxapps[0].statu + ")",
                                        template_id: data.wxapps[0].template_id,
                                        version: data.wxapps[0].version,
                                        description: data.wxapps[0].description,
                                        en: data.wxapps[0].template_id,
                                    }];
                                }
                                if (data.table_type_list) {
                                    $scope.elmAry = [];
                                    _.map(data.table_type_list, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.table_type_id,
                                            name: v.name,
                                            code: v.name,
                                            en: v.name,
                                        });
                                    });
                                }
                                if (data.schemas) {
                                    $scope.elmAry = [];
                                    _.map(data.schemas, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.schema_id,
                                            name: v.name,
                                            code: v.name,
                                            en: v.name,
                                        });
                                    });
                                }

                                if (data.class_list) {
                                    $scope.elmAry = [];
                                    _.map(data.class_list, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.class_category_id,
                                            name: v.name,
                                            en: v.name,
                                        });
                                    });
                                }
                                if (data.res_item) {
                                    $scope.elmAry = [];
                                    _.map(data.res_item, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.res_item_id,
                                            name: v.name,
                                            en: v.name,
                                        });
                                    });
                                    console.error("schemas", $scope.elmAry);
                                }
                                if (data.fz_list) {
                                    $scope.elmAry = [];
                                    _.map(data.fz_list, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.fz_group_id,
                                            name: v.name,
                                            en: v.name,
                                        });
                                    });
                                    console.error("schemas", $scope.elmAry);
                                }

                                if (data.grade_list) {
                                    $scope.elmAry = [{
                                        id: -2,
                                        name: "所有",
                                        en: "all",
                                    }];

                                    _.map(data.grade_list, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.grade_id,
                                            name: v.name,
                                            en: v.name,

                                        })
                                    });
                                    if (dname == "shenpiList") {
                                        $scope.elmAry.unshift({
                                            id: -1,
                                            name: "人工审核",
                                            en: "Manual Review"
                                        })
                                    }
                                }
                                if (data.product_list) {
                                    $scope.elmAry = [];
                                    _.map(data.product_list, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.product_id,
                                            name: v.name,
                                            en: v.name,
                                        })
                                    });
                                }
                                if (data.gzhsc_cat_list) {
                                    $scope.elmAry = [];
                                    _.map(data.gzhsc_cat_list, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.gzhsc_cat_id,
                                            name: v.name,
                                            en: v.name,
                                        })
                                    });
                                }
                                if (data.data) {
                                    $scope.elmAry = [];
                                    _.map(data.data, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.id,
                                            name: v.name,
                                            en: v.name,
                                        })

                                    });
                                }
                                if (data.country) {
                                    $scope.elmAry = [];
                                    _.map(data.country, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.id,
                                            name: v.name,
                                            en: v.name,
                                        })
                                    });
                                    console.error("country", data.country);
                                }
                                if (data.data_code) {
                                    $scope.elmAry = [];
                                    _.map(data.data_code, function(v, k) {
                                        $scope.elmAry.push({
                                            id: k,
                                            name: v,
                                            en: v,
                                        })
                                    });
                                }
                                if (data.pickpoint_list) {
                                    $scope.elmAry = [];
                                    _.map(data.pickpoint_list, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.pickpoint_id,
                                            name: v.name + '（' + v.province + '' + v.city + '' + v.district + '' + v.address + '）',
                                            en: v.name + '（' + v.province + '' + v.city + '' + v.district + '' + v.address + '）',
                                        })
                                    });

                                    if (dname == "pickpointList") {
                                        $scope.elmAry.unshift({
                                            id: -1,
                                            name: "请选择发货点地址",
                                            en: "pickpoint address"
                                        })
                                    }
                                }

                                if (data.member_levels) {
                                    $scope.elmAry = [];
                                    _.map(data.member_levels, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.member_level_id,
                                            name: v.name,
                                            en: v.name,
                                        })
                                    });

                                    if (dname == "memberLevel") {
                                        $scope.elmAry.unshift({
                                            id: 0,
                                            name: "全部",
                                            en: "NULL"
                                        })
                                    }
                                }

                                if (data.itemcats) {
                                    $scope.elmAry = [];
                                    _.map(data.itemcats, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.cid,
                                            name: v.name,
                                            en: v.name,
                                        })
                                    });

                                    if (dname == "cateList") {
                                        $scope.elmAry.unshift({
                                            id: 0,
                                            name: "全部",
                                            en: "NULL"
                                        })
                                    }
                                }


                                if (data.customform_list) {
                                    $scope.elmAry = [];
                                    _.map(data.customform_list, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.form_id,
                                            name: v.form_name,
                                            en: v.form_name,
                                        })
                                    });

                                    if (dname = "customFormName") {
                                        $scope.elmAry.unshift({
                                            id: -1,
                                            name: "请选择自定义表单",
                                            en: "choose customform"
                                        })
                                    }
                                }

                                if (data.wuliu_list) {
                                    $scope.elmAry = [];
                                    _.map(data.wuliu_list, function(v, k) {
                                        $scope.elmAry.push({
                                            id: k,
                                            name: v,
                                            en: v,
                                        })
                                    });
                                }

                                $scope.set($scope.ngModel);
                            });
                        }
                        initData();

                        $scope.set = function(dd) {
                            $scope.tmpNgModel = {};
                            // console.error("$scope.dd ", dd);
                            if (_.isNumber(dd) || _.isString(dd)) {
                                _.map($scope.elmAry, function(a) {
                                    // console.error("$scope.a ", a);
                                    if (a.id == dd) {
                                        $scope.tmpNgModel = a;
                                        // console.error("$scope.tmpNgModel", $scope.tmpNgModel);
                                    }
                                });
                            } else {
                                if (dd) {
                                    _.map($scope.elmAry, function(a) {
                                        if (a.id == dd.id) {
                                            $scope.tmpNgModel = a;
                                        }
                                    });
                                }
                            }
                            if (dname == 'storeList') {
                                var store = sessionService.get('store');
                                if (store && !$scope.home) {
                                    _.map($scope.elmAry, function(a) {
                                        if (a.id == store.id) {
                                            $scope.tmpNgModel = a;
                                        }
                                    });
                                }
                            }
                            if (dname == 'carrywayType' || dname == 'memberLevel' || dname == 'fxgradeList' || dname == 'fxproductList' || dname == 'shenpiList' || dname == 'pickpointList' || dname == 'gzhsucatGet' || dname == 'classcategoryList' || dname == 'deskType' || dname == 'resitemList' || dname == 'customFormName') {
                                _.map($scope.elmAry, function(a) {
                                    if (dd == a.id) {
                                        $scope.tmpNgModel = a;
                                    }
                                })
                            }
                            // console.error("$scope.tmpNgModel ", $scope.tmpNgModel, dd, dname);
                        }
                    }
                ],

                link: function(scope, element, attrs, ctrl) {
                    scope.$watch('ngModel', function(newValue, oldValue, scope) {
                        if (newValue && newValue != oldValue) {
                            scope.set(newValue);
                            ctrl.$setViewValue(newValue);
                        }
                    });

                    scope.$watch('tmpNgModel', function(newValue, oldValue, scope) {
                        if (newValue && newValue.id != oldValue.id) {
                            if (scope.obj) {
                                ctrl.$setViewValue(newValue);
                            } else {
                                ctrl.$setViewValue(newValue.id);
                                if (scope.backcall) {
                                    // console.error("newValue=====", newValue);
                                    // if (_.size(oldValue)) {
                                    scope.backcall({
                                        "store": newValue
                                    });
                                    // }
                                }
                            }
                        }
                    });

                    scope.$watch('elmAry', function(newValue, oldValue, scope) {
                        if (!ctrl.$viewValue && attrs.dft && newValue) {
                            if (newValue[0]) {
                                scope.tmpNgModel = newValue[0];
                                if (scope.obj) {
                                    ctrl.$setViewValue(newValue[0]);
                                } else {
                                    ctrl.$setViewValue(newValue[0].id);
                                }
                            }
                        }

                        if (attrs.stype) {
                            scope.set(ctrl.$viewValue);
                        }
                    });
                    //处理数据，得到想要 的数据
                    ctrl.$render = function() {
                        if (ctrl.$viewValue) {
                            scope.set(ctrl.$viewValue);
                        }
                    };
                }
            }
        }
    ]);
});

angular.module('webApp').directive('storeList', ['dataService', '$compile', 'helper',
    function(dataService, $compile, helper) {
        return {
            restrict: 'E',
            require: 'ngModel',
            scope: {
                ngModel: '=',
                stype: "@", //是否只输出文字
                dft: "@", //是否设置初始化值
                obj: "@",
                home: "@",
                cache: "@",
                backcall: "&"
            },

            template: '<span ng-if="stype" ><span ng-show="tmpNgModel.name" ng-bind="show()"></span><span ng-show="!tmpNgModel.name">{{ngModel|translate}}</span></span><span ng-show="!stype"><select ng-model="tmpNgModel" ng-options="option.name for option in elmAry track by option.id" style="max-width:100px;" > </select></span>',
            controller: ['$templateCache', '$rootScope', '$scope', '$timeout', 'sessionService',
                function($templateCache, $rootScope, $scope, $timeout, sessionService) {
                    $scope.tmpNgModel = {};
                    $scope.show = function() {
                            if (window.localStorage.lang == 'zh-cn' || !window.localStorage.lang) {
                                return $scope.tmpNgModel.name || $scope.ngModel;
                            } else {
                                return $scope.tmpNgModel.en || $scope.ngModel;
                            }
                        }
                        //接受登录成功的通知 然后进行查询店铺
                    $rootScope.$on('event:store-update', function() {
                        initData();
                    });

                    function initData() {
                        var user = sessionService.get("tokenUser");
                        dataService.roleOne(user.SubRoleId).then(function(role) {
                            //                             console.error("reole", role, user);
                            if (role) {
                                var store_index = -1
                                if (role.data_range && _.isString(role.data_range)) {
                                    try {
                                        role.data_range = JSON.parse(role.data_range);
                                        if (role.data_range.store_range && role.data_range.store_range.length) {
                                            store_index = _.findIndex(role.data_range.store_range, {
                                                user_id: user.Id
                                            });
                                        }
                                    } catch (e) {
                                        helper.myAlert(e);
                                    }
                                } else {
                                    if (role.data_range.store_range && role.data_range.store_range.length) {
                                        store_index = _.findIndex(role.data_range.store_range, {
                                            user_id: user.Id
                                        });
                                    }
                                }
                                if (role.is_super_admin) {
                                    // return menu;
                                    storeList();
                                } else if (role.data_range && ((role.data_range.store_ids && role.data_range.store_ids.length) || (store_index > -1 && role.data_range.store_range[store_index].store_ids && role.data_range.store_range[store_index].store_ids.length))) {
                                    if (role.data_range.store_ids && role.data_range.store_ids.length) {
                                        $scope.store_ids = role.data_range.store_ids;
                                    }
                                    if (store_index > -1 && role.data_range.store_range[store_index].store_ids && role.data_range.store_range[store_index].store_ids.length) {
                                        $scope.store_ids = role.data_range.store_range[store_index].store_ids;
                                    }
                                    console.error("s", $scope.store_ids);
                                    storeList();
                                    // return roleCaidan(role.menu, menu);
                                } else {
                                    helper.myAlert("管理员没有给你设置门店权限。找管理员在：设置-权限->添加员工");
                                }
                            }
                        });

                    }

                    function storeList() {
                        var query = {};
                        if ($scope.ngModel && !$scope.dft) {
                            query = {
                                query: {
                                    store_id: $scope.ngModel,
                                }
                            };
                        } else {
                            query = {
                                page_size: 150
                            };
                        }
                        var cache = "";
                        if ($scope.cache) {
                            cache = $scope.cache;
                        }
                        dataService.storeGet(query, cache).then(function(data) {
                            if (data.store) {
                                var user = sessionService.get("tokenUser");
                                $scope.elmAry = [];
                                _.map(data.store, function(v, k) {
                                    if (user.Role == 4) {
                                        $scope.elmAry = [{
                                            id: 1,
                                            name: "服装店",
                                            code: "2",
                                            partner_id: "1",
                                            is_main: 1,
                                            en: "服装店",
                                        }]
                                    } else {
                                        var stoerData = {
                                            id: v.store_id,
                                            name: v.name,
                                            code: v.industry_code,
                                            partner_id: v.partner_id,
                                            is_main: v.is_main,
                                            en: v.name,
                                        };
                                        if (v.is_main == 1) {
                                            stoerData.name = stoerData.name + '(主店)';
                                        }
                                        if ($scope.store_ids && $scope.store_ids.length) {
                                            var i = _.indexOf($scope.store_ids, Number(stoerData.id))
                                            if (i > -1) {
                                                $scope.elmAry.push(stoerData);
                                            }
                                        } else {
                                            $scope.elmAry.push(stoerData);
                                        }
                                    }
                                });
                            }
                            $scope.set($scope.ngModel);
                        });
                    }
                    initData();

                    $scope.set = function(dd) {
                        $scope.tmpNgModel = {};
                        var fff1;
                        if (_.isNumber(dd) || _.isString(dd)) {
                            _.map($scope.elmAry, function(a) {
                                if (!fff1) {
                                    fff1 = a;
                                }
                                if (a.id == dd) {
                                    $scope.tmpNgModel = a;
                                }
                            });
                            if (!$scope.tmpNgModel.id && fff1) {
                                $scope.tmpNgModel = fff1;
                            }
                        } else {
                            if (dd) {
                                _.map($scope.elmAry, function(a) {
                                    if (!fff1) {
                                        fff1 = a;
                                    }
                                    if (a.id == dd.id) {
                                        $scope.tmpNgModel = a;
                                    }
                                });
                                if (!$scope.tmpNgModel.id && fff1) {
                                    $scope.tmpNgModel = fff1;
                                }
                            }
                        }

                        var store = sessionService.get('store');
                        if (store && !$scope.home) {
                            _.map($scope.elmAry, function(a) {
                                if (a.id == store.id) {
                                    $scope.tmpNgModel = a;
                                    if (!$rootScope.huilvfuhao) {
                                        dataService.sellerAuthorizeAuthorizer_infoGet(a.store_id, null).then(function(wxapp) {
                                            async.mapSeries(wxapp, function(wx, cb) {
                                                var data = {
                                                    appid: wx.app_id,
                                                    cid: 0,
                                                    name: "CONFIG-HUILV",
                                                    store_id: a.store_id
                                                };
                                                dataService.wxappOne(data).then(function(res) {
                                                    if (res) {
                                                        var value = JSON.parse(res.value);
                                                        if (!$scope.huilvfuhao) {
                                                            $rootScope.huilvfuhao = {};
                                                            $rootScope.huilvfuhao[wx.app_id] = value
                                                        } else {
                                                            $rootScope.huilvfuhao[wx.app_id] = value;
                                                        }
                                                    }

                                                })
                                            })
                                        })
                                    }
                                }
                            });
                        }
                    }
                }
            ],

            link: function(scope, element, attrs, ctrl) {
                scope.$watch('ngModel', function(newValue, oldValue, scope) {
                    if (newValue && newValue != oldValue) {
                        scope.set(newValue);
                        ctrl.$setViewValue(newValue);
                    }
                });

                scope.$watch('tmpNgModel', function(newValue, oldValue, scope) {
                    if (newValue && newValue.id != oldValue.id) {
                        if (scope.obj) {
                            ctrl.$setViewValue(newValue);
                        } else {
                            ctrl.$setViewValue(newValue.id);
                            if (scope.backcall) {
                                scope.backcall({
                                    "store": newValue
                                });
                            }
                        }
                    }
                });
                scope.$watch('elmAry', function(newValue, oldValue, scope) {
                    if (!ctrl.$viewValue && attrs.dft && newValue) {
                        if (newValue[0]) {
                            scope.tmpNgModel = newValue[0];
                            if (scope.obj) {
                                ctrl.$setViewValue(newValue[0]);
                            } else {
                                ctrl.$setViewValue(newValue[0].id);
                            }
                        }
                    }

                    if (attrs.stype) {
                        scope.set(ctrl.$viewValue);
                    }
                });
                //处理数据，得到想要 的数据
                ctrl.$render = function() {
                    if (ctrl.$viewValue) {
                        scope.set(ctrl.$viewValue);
                    }
                };
            }
        }
    }
]);

angular.module('webApp').directive('wxTagsList', ['dataService', '$compile',
    function(dataService, $compile) {
        return {
            restrict: 'E',
            require: 'ngModel',
            scope: {
                ngModel: '=',
                wxappid: "=",
                stype: "@"
            },

            template: '<span ng-if="stype" ><span ng-show="tmpNgModel.name" ng-bind="show()"></span><span ng-show="!tmpNgModel.name">{{ngModel|translate}}</span></span><span ng-show="!stype"><select ng-model="tmpNgModel" ng-change="selectChange(tmpNgModel)"  ng-options="option.name for option in elmAry track by option.id" style="max-width:100px;" > </select></span>',
            controller: ['$templateCache', '$rootScope', '$scope', '$timeout', 'sessionService',
                function($templateCache, $rootScope, $scope, $timeout, sessionService) {
                    $scope.tmpNgModel = {};
                    $scope.show = function() {
                        if (window.localStorage.lang == 'zh-cn' || !window.localStorage.lang) {
                            return $scope.tmpNgModel.name || $scope.ngModel;
                        } else {
                            return $scope.tmpNgModel.en || $scope.ngModel;
                        }
                    }

                    $scope.selectChange = function(tmpNgModel) {
                        $scope.ngModel = tmpNgModel.id;
                        console.error("tmpNgModel", tmpNgModel, $scope.ngModel);
                    }

                    function initData() {
                        console.error("$scope.wxappid", $scope.wxappid);
                        $timeout(function() {
                            if ($scope.wxappid) {
                                dataService.wxTagsGet($scope.wxappid).then(function(data) {
                                    if (data.tags) {
                                        $scope.elmAry = [];
                                        _.map(data.tags, function(v, k) {
                                            $scope.elmAry.push({
                                                id: v.id,
                                                name: v.name,
                                            });
                                        });
                                    }
                                    $scope.set($scope.ngModel);
                                });
                            }
                        });
                    }
                    initData();

                    $scope.set = function(id) {
                        $scope.tmpNgModel = {};
                        $timeout(function() {
                            if (id && id != 0) {
                                _.map($scope.elmAry, function(a) {
                                    if (a.id == id) {
                                        $scope.tmpNgModel = a;
                                        console.error("1111");
                                    }
                                });
                                // console.error("$scope.tmpNgModel", $scope.tmpNgModel,$scope.elmAry);
                            } else {
                                if ($scope.elmAry) {
                                    $scope.tmpNgModel = $scope.elmAry[0];
                                }
                            }
                        })
                    }
                }
            ],

            link: function(scope, element, attrs, ctrl) {
                //处理数据，得到想要 的数据
                ctrl.$render = function() {
                    if (ctrl.$viewValue) {
                        scope.set(ctrl.$viewValue);
                    }
                };
            }
        }
    }
]);
angular.module('webApp').directive('wxAppList', ['dataService', '$compile', 'helper', '$timeout', 'dhfprinterService',
    function(dataService, $compile, helper, $timeout, dhfprinterService) {
        return {
            restrict: 'EA',
            templateUrl: "views/directives.wxapplist.html",
            require: 'ngModel',
            scope: {
                ngModel: '=',
                dft: "@", //m默认值
                ary: "=",
                stype: "@", //只显示值
                xc: "@",
                storedata: "@", //绑定查询小程序
                type: "@", //z展示样式  下拉框还是 选择框
                callbacks: "&",
                getstoreid: "=",
            },
            // template: '<span><span ng-show="stype">{{nick_name}}</span><span ng-show="!stype"><select ng-model="SelModer" ng-options="author.app_id as author.nick_name group by author.store_name for author in authorlist" ></select></span></span>',
            controller: ['$templateCache', '$rootScope', '$scope', 'sessionService', 'ERP_CONFIG',
                function($templateCache, $rootScope, $scope, sessionService, ERP_CONFIG) {

                    $scope.$on('event:up-store-id', function() {
                        $scope.initData();
                    });
                    $scope.$watch('getstoreid', function(newValue, oldValue, scope) {
                        if (newValue) {
                            $scope.initData();
                        }
                    });
                    $scope.initData = function() {
                        //验证是不是管理员，是管理员，店铺没人赋值为。
                        storeGet().then(function() {
                            $scope.mapstore = clone($scope.store);
                            // console.error("$scope.mapstore", $scope.mapstore);
                            if ($scope.mapstore) {
                                $scope.authorlist = [];
                                async.mapSeries($scope.mapstore, function(dd, cb1) {
                                    dd.sub = [];
                                    dataService.sellerAuthorizeAuthorizer_infoGet(dd.store_id, null, false).then(function(a) {
                                        if (a) {
                                            _.map(a, function(isda) {
                                                if (isda.service_type_id == 2 && isda.app_id != ERP_CONFIG.BackAppId && !$scope.xc) {
                                                    isda.store_name = dd.name;
                                                    $scope.authorlist.push(isda);
                                                    dd.sub.push(isda);
                                                }

                                                if (isda.service_type_id == 1 && isda.app_id != ERP_CONFIG.BackAppId && $scope.xc) {
                                                    isda.store_name = dd.name;
                                                    $scope.authorlist.push(isda);
                                                }
                                            });
                                            cb1(null);
                                        } else {
                                            cb1(null);
                                        }
                                    });
                                }, function(e, d) {
                                    if ($scope.dft && $scope.authorlist.length > 0) {
                                        $scope.SelModer = $scope.authorlist[0].app_id;
                                        $scope.ngModel = $scope.authorlist[0].app_id;
                                        $scope.ary = $scope.authorlist[0];
                                        $scope.imcallback($scope.authorlist[0].app_id);
                                    }

                                    if ($scope.stype) {
                                        _.map($scope.authorlist, function(isd, ik) {
                                            if (isd.app_id == $scope.ngModel) {
                                                $scope.nick_name = isd.nick_name;
                                            }
                                        });
                                    }
                                    // console.error($scope.ngModel, $scope.SelModer);
                                    if ($scope.ngModel && !$scope.SelModer) {
                                        _.map($scope.authorlist, function(isd, ik) {
                                            if (isd.app_id == $scope.ngModel) {
                                                // console.error("isdisd", isd);
                                                $scope.SelModer = isd.app_id;
                                            }
                                        });
                                    }
                                })
                            }

                        })
                    }

                    $scope.change = function(newValueid) {
                        //console.error("newValueid", newValueid, $scope.ary, $scope.callbacks);
                        if (newValueid) {
                            $scope.ngModel = newValueid;
                            _.map($scope.authorlist, function(isd, ik) {
                                if (isd.app_id == newValueid) {
                                    $scope.ary = isd;
                                }
                            });
                            $scope.imcallback(newValueid);

                        }
                    }

                    //执行回调方法
                    $scope.imcallback = function(newValueid) {
                        if ($scope.callbacks) {

                            // console.error("newValueid", newValueid,$scope.ary);
                            $scope.callbacks({
                                app_id: newValueid
                            });

                        }
                    }

                    //店铺查询
                    function storeGet() {
                        var query = {
                            page_size: 100
                        };
                        if ($scope.storedata) {
                            query.query = {
                                store_id: $rootScope.store_id
                            };
                        }
                        if ($scope.getstoreid) {
                            query.query = {
                                store_id: $scope.getstoreid
                            };
                        }
                        //console.error("query.Rarotonga", query);
                        return dataService.storeGet(query, true).then(function(a) {
                            //console.error("aaaaaaaaaaa", a);
                            if (a.store.length > 0) {
                                return $scope.store = a.store;
                            } else {
                                return false;
                            }
                        });
                    }

                    $scope.initData();
                }
            ],

            link: function(scope, element, attrs, ctrl) {

                ctrl.$render = function() {
                    if (ctrl.$viewValue && !scope.type) {
                        // scope.ngModel = ctrl.$viewValue;
                        // scope.initData();
                        ctrl.$setViewValue(ctrl.$viewValue);
                    }
                    if (scope.type) {
                        scope.ngModel = scope.ngModel ? scope.ngModel : [];
                    }
                };


            }
        }
    }
]);

angular.module('webApp').directive('wxAppCheckbox', ['dataService', '$compile', 'helper', '$timeout', 'dhfprinterService',
    function(dataService, $compile, helper, $timeout, dhfprinterService) {
        return {
            restrict: 'EA',
            templateUrl: "views/directives.wxappcheckbox.html",
            require: 'ngModel',
            scope: {
                ngModel: '=',
            },
            // template: '<span><span ng-show="stype">{{nick_name}}</span><span ng-show="!stype"><select ng-model="SelModer" ng-options="author.app_id as author.nick_name group by author.store_name for author in authorlist" ></select></span></span>',
            controller: ['$templateCache', '$rootScope', '$scope', 'ERP_CONFIG',
                function($templateCache, $rootScope, $scope, ERP_CONFIG) {
                    $scope.ngModel = _.isArray($scope.ngModel) ? $scope.ngModel : [];

                    $scope.initData = function() {
                        storeGet().then(function() {
                            $scope.mapstore = clone($scope.store);
                            if ($scope.mapstore) {

                                async.mapSeries($scope.mapstore, function(dd, cb1) {
                                    dd.sub = [];
                                    dataService.sellerAuthorizeAuthorizer_infoGet(dd.store_id).then(function(a) {
                                        if (a) {
                                            _.map(a, function(isda) {
                                                if (isda.service_type_id == 2 && isda.app_id != ERP_CONFIG.BackAppId && !$scope.xc) {
                                                    isda.store_name = dd.name;
                                                    dd.sub.push(isda);
                                                }
                                            });
                                            cb1(null);
                                        } else {
                                            cb1(null);
                                        }
                                    });
                                }, function(e, d) {
                                    // console.error("query", $scope.mapstore);
                                })
                            }
                        })
                    }


                    //店铺查询
                    function storeGet() {
                        return dataService.storeGet({
                            page_size: 100
                        }).then(function(a) {
                            if (a.store.length > 0) {
                                return $scope.store = a.store;
                            } else {
                                return false;
                            }
                        });
                    }

                    $scope.initData();
                }
            ],

            link: function(scope, element, attrs, ctrl) {



            }
        }
    }
]);
angular.module('webApp').run(["$templateCache", "dataService",
    function($templateCache, dataService) {
        var tplName = "views/directives.wxappcheckbox.html";
        dataService.tpl(tplName).then(function(html) {
            $templateCache.put(tplName, html);
        });
    }
]).directive('wxAppCheckboxAlert', ['dataService', '$compile', 'helper', '$timeout', 'dhfprinterService',
    function(dataService, $compile, helper, $timeout, dhfprinterService) {
        return {
            restrict: 'EA',
            templateUrl: "views/directive.wxappstorelist.html",
            require: 'ngModel',
            scope: {
                ngModel: '=',
            },
            // template: "<span><a href='javascript:;' ng-init='initshow()' class='sui-btn btn-link' ng-click='showPro()'>+ {{'选择门店小程序'|translate}}</a>",
            controller: ['$templateCache', '$rootScope', '$scope', 'ERP_CONFIG',
                function($templateCache, $rootScope, $scope, ERP_CONFIG) {
                    $scope.ngModel = _.isArray($scope.ngModel) ? $scope.ngModel : [];
                    $scope.show_list = {
                        store_list: [],
                        wxapp_list: []
                    }
                    var set_zanting = false;

                    $scope.$watch('ngModel', function(newValue, oldValue, scope) {
                            if (_.size($scope.ngModel) && (!$scope.show_app_list || !$scope.show_store_list)) {
                                showPageStoreXcx();
                            }
                        })
                        // $scope.initshow = function() {
                        //     showPageStoreXcx();
                        // }
                    $scope.storeClick = function(store, checked) {
                        if ($scope.ngModel.length && !set_zanting) {

                            var i = _.findIndex($scope.ngModel, {
                                store_ids: store.store_id
                            });
                            if (i != -1) {
                                $scope.ngModel.splice(i, 1);
                            }

                        } else {
                            if (set_zanting) {
                                setTimeout(function() {
                                    $scope.storeClick();
                                }, 500)
                            }
                        }
                    };
                    $scope.appClick = function(app, checked) {
                        if ($scope.ngModel.length && !set_zanting) {
                            var i = _.findIndex($scope.ngModel, {
                                app_ids: app.app_id
                            });
                            if (i != -1) {
                                $scope.ngModel.splice(i, 1);
                            }
                        } else {
                            if (set_zanting) {
                                setTimeout(function() {
                                    $scope.appClick();
                                }, 500)
                            }
                        }
                    };
                    $scope.showPro = function() {
                        $scope.initData().then(showSelect)
                    }
                    $scope.initData = function() {
                        return storeGet().then(function() {
                            $scope.mapstore = clone($scope.store);
                            $scope.wxapp_id = [];
                            var pp = null
                            if ($scope.mapstore) {
                                async.mapSeries($scope.mapstore, function(dd, cb1) {
                                    dd.sub = [];
                                    pp = dataService.sellerAuthorizeAuthorizer_infoGet(dd.store_id).then(function(a) {
                                        if (a) {
                                            _.map(a, function(isda) {
                                                if (isda.service_type_id == 2 && isda.app_id != ERP_CONFIG.BackAppId && !$scope.xc) {
                                                    isda.store_name = dd.name;
                                                    dd.sub.push(isda);
                                                }
                                                if (_.findIndex($scope.wxapp_id, {
                                                        app_id: isda.app_id
                                                    }) == -1) {
                                                    $scope.wxapp_id.push(isda);
                                                }
                                            });
                                            cb1(null);
                                        } else {
                                            cb1(null);
                                        }
                                        return a;
                                    });
                                }, function(e, d) {

                                    // console.error("query", $scope.mapstore);
                                })
                            }
                            return pp.then(function() {

                            })
                        })
                    }

                    function showPageStoreXcx() {
                        set_zanting = true;
                        $scope.show_store_list = [];
                        $scope.show_app_list = [];
                        $scope.check_applist = [];
                        if ($scope.ngModel.length && ($scope.show_list.store_list.length + $scope.show_list.wxapp_list.length != $scope.ngModel.length)) {
                            var store_ids = [],
                                app_ids = [];
                            async.map($scope.ngModel, function(obj, cb) {
                                    if (obj.store_ids) {
                                        store_ids.push(obj.store_ids);
                                    }
                                    if (obj.app_ids) {
                                        app_ids.push(obj.app_ids);
                                    }
                                    cb(null, null);
                                }, function(e, r) {
                                    _.map(store_ids, function(store_id) {
                                        storeIdsGet(store_id).then(function(result) {
                                            var i = _.findIndex(result, {
                                                store_id: Number(store_id)
                                            })
                                            console.error("i", i, store_id, result);
                                            if (i != -1) {
                                                $scope.show_store_list.push(result[i])
                                            }
                                        })
                                    })
                                    _.map(app_ids, function(app_id) {
                                        var data = {
                                            content: {
                                                app_id: app_id
                                            }
                                        }
                                        dataService.getCustaccount(data).then(function(result) {
                                            if (result.app_id) {
                                                console.error("result", result);
                                                $scope.show_app_list.push(result);
                                            }
                                        })
                                    })
                                    set_zanting = false;
                                })
                                // _.map(function())
                        }
                    }

                    function storeIdsGet(ids) {
                        return dataService.storeGet({
                            query: {
                                "store_id.in": ids
                            },
                            page_size: 100
                        }).then(function(a) {
                            if (a.store.length > 0) {
                                return $scope.store = a.store;
                            } else {
                                return false;
                            }
                        });
                    }
                    //店铺查询
                    function storeGet() {
                        return dataService.storeGet({
                            page_size: 100
                        }).then(function(a) {
                            if (a.store.length > 0) {
                                return $scope.store = a.store;
                            } else {
                                return false;
                            }
                        });
                    }

                    function showSelect() {
                        console.error("ng-mode", $scope.ngModel);
                        $scope.error = null;
                        //弹出
                        $.alert({
                            backdrop: "static",
                            keyboard: true,
                            title: '{{"门店小程序列表"|translate}}',
                            body: $templateCache.get("views/directives.wxappcheckbox.html"),
                            okBtn: '{{"ok"|translate}}',
                            closeBtn: true,
                            transition: true,
                            width: 'large',
                            height: 300,
                            show: function(e) {
                                $compile($(e.currentTarget).contents())($scope);
                            },
                            okHide: function(e) {
                                $timeout(function() {
                                    showPageStoreXcx();
                                    // if (_.size($scope.kanjiaObj) > 0) {
                                    //     console.log("fenxiao", $scope.kanjiaObj);
                                    //     $scope.callback({ bargain_rule_id: $scope.kanjiaObj.bargain_rule_id });
                                    // }
                                })
                            },
                            shown: function(e) {}
                        });
                    }

                }
            ],

            link: function(scope, element, attrs, ctrl) {



            }
        }
    }
]);
angular.module('webApp').run(["$templateCache", "dataService",
    function($templateCache, dataService) {
        var tplName = "views/directives.roleUser.html";
        dataService.tpl(tplName).then(function(html) {
            $templateCache.put(tplName, html);
        });
    }
]).directive('roleUser', ['dataService', '$compile', 'helper', '$timeout', 'dhfprinterService', '$state',
    function(dataService, $compile, helper, $timeout, dhfprinterService, $state) {
        return {
            restrict: 'EA',
            // templateUrl: "views/directives.wxappcheckbox.html",
            require: 'ngModel',
            scope: {
                roleId: '=',
                ngModel: '=',
                callback: '&'
            },
            template: "<span><a href='javascript:;' class='sui-btn btn-link' ng-click='showPro()'>+ {{'选择员工'|translate}}</a>",
            controller: ['$templateCache', '$rootScope', '$scope', 'ERP_CONFIG', '$location', '$state',
                function($templateCache, $rootScope, $scope, ERP_CONFIG, $location, $state) {
                    // $scope.ngModel = _.isArray($scope.ngModel) ? $scope.ngModel : [];
                    $scope.check_item = [];
                    $scope.showPro = function() {
                        _.map($scope.ngModel, function(item) {
                            $scope.check_item.push({
                                user_id: item.user_id,
                                nick_name: item.nick_name,
                                avatar: item.avatar
                            });
                        })
                        $scope.initData().then(showSelect)
                    }
                    $scope.initData = function() {
                        return userGet().then(function(user_list) {
                            return user_list;
                        })
                    }

                    $scope.goAddUser = function() {
                        // helper.myConfirm("", function() {
                        helper.rmAlert();
                        // $state.go('role.user', { role_id: $scope.roleId, history: 1 })
                        // console.error("$", $location, $window);
                        window.location.href = "#/role/user?role_id=" + $scope.roleId + "&history=1"
                            // })
                    }
                    $scope.adduser = function(open_id) {

                        var data = {
                            open_id: open_id,
                            role_id: Number($scope.roleId)
                        };
                        console.error("data", data);
                        dataService.bindAdd(data).then(function(rs) {
                            // $scope.showPro();
                            console.error("rs", rs);
                            if (rs.Msg) {
                                helper.myAlert(rs.Msg);
                            } else {
                                $scope.initData();
                            }
                        })
                    }

                    //店铺查询
                    function userGet() {
                        $scope.pageNo = "1";
                        var query = {
                            page_no: $scope.pageNo,
                            page_size: 100,
                            role_id: $scope.roleId,
                        };

                        if ($scope.name) {
                            query.query = {
                                "name": $scope.name
                            };
                        }

                        return dataService.subuserGet(query).then(function(list) {
                            if (list.users && list.users.length) {
                                var arr = [];
                                _.map(list.users, function(user) {
                                    arr.push({
                                        user_id: user.user_id,
                                        nick_name: user.nick_name,
                                        avatar: user.avatar,
                                        open_id: user.open_id
                                    });
                                })
                                $scope.itemslist = arr;
                                $scope.itemsTotal = list.total_count;
                            } else {
                                $scope.itemslist = [];
                                $scope.itemsTotal = 0;
                            }
                            return arr;
                        });
                    }

                    //删除
                    $scope.delbind = function(open_id) {
                        helper.myConfirm("confirm operation", function() {
                            dataService.bindDelete({
                                open_id: open_id,
                                role_id: $scope.roleId
                            }).then(function(result) {
                                if (!result.Msg) {
                                    // helper.myAlert("success");
                                    $scope.initData();
                                } else {
                                    // helper.myAlert("success", "#/role/list");
                                    helper.myAlert("删除失败");
                                }

                            });
                        });
                    }

                    function showSelect() {
                        $scope.error = null;
                        //弹出
                        $.alert({
                            backdrop: "static",
                            keyboard: true,
                            title: '{{"员工列表"|translate}}',
                            body: $templateCache.get("views/directives.roleUser.html"),
                            okBtn: '{{"ok"|translate}}',
                            closeBtn: true,
                            transition: true,
                            width: 'large',
                            height: 300,
                            show: function(e) {
                                $compile($(e.currentTarget).contents())($scope);
                            },
                            okHide: function(e) {
                                $timeout(function() {
                                    console.error("check_item", $scope.check_item, $scope.ngModel);
                                    var list = [];
                                    _.map($scope.check_item, function(user) {
                                        var i = _.findIndex(list, {
                                            user_id: user.user_id
                                        });
                                        if (i == -1) {
                                            list.push(user);
                                        }
                                    })
                                    console.error("list", list);
                                    if ($scope.callback) {
                                        $scope.callback({
                                            users: list
                                        });
                                    }
                                })
                            },
                            shown: function(e) {}
                        });
                    }

                }
            ],

            link: function(scope, element, attrs, ctrl) {



            }
        }
    }
]);
angular.module('webApp').directive('childGet', ['dataService', '$compile', 'helper', '$timeout', 'dhfprinterService',
    function(dataService, $compile, helper, $timeout, dhfprinterService) {
        return {
            restrict: 'EA',
            // templateUrl: "views/directives.wxappcheckbox.html",
            require: 'ngModel',
            scope: {
                ngModel: '=',
            },
            template: '<span>{{nick_name}}</span>',
            controller: ['$templateCache', '$rootScope', '$scope',
                function($templateCache, $rootScope, $scope) {
                    $scope.initData = function() {
                        var query = {
                            "ting_chid_id": $scope.ngModel
                        }
                        dataService.tingChildGet(query).then(function(a) {
                            if (a.list && a.list[0]) {
                                $scope.nick_name = a.list[0].name;
                            }
                        });
                    }
                    $scope.initData();
                }
            ],

            link: function(scope, element, attrs, ctrl) {



            }
        }
    }
]);
//指定邮费模板
var postfeemoban = {
    "postfeeList": "postfeeGet",
    "schematypeGet": "schematypeGet",
};

_.map(postfeemoban, function(zstatus, dname) {
    angular.module('webApp').directive(dname, ['dataService', '$compile',
        function(dataService, $compile) {
            return {
                restrict: 'E',
                require: 'ngModel',
                scope: {
                    ngModel: '=',
                    stype: "@", //是否只输出文字
                    dft: "@" //是否设置初始化值
                },

                template: '<span ng-if="stype" ><span ng-show="tmpNgModel.name" ng-bind="show()"></span><span ng-show="!tmpNgModel.name">{{ngModel|translate}}</span></span><span ng-show="!stype"><select ng-model="tmpNgModel" ng-options="option.name for option in elmAry track by option.id" > </select></span>',
                controller: ['$templateCache', '$rootScope', '$scope', '$timeout',
                    function($templateCache, $rootScope, $scope, $timeout) {
                        $scope.tmpNgModel = {};
                        $scope.$on('event:up-store-id', function() {
                            initData()
                        });

                        $scope.show = function() {
                            if (window.localStorage.lang == 'zh-cn' || !window.localStorage.lang) {
                                return $scope.tmpNgModel.name || $scope.ngModel;
                            } else {
                                return $scope.tmpNgModel.en || $scope.ngModel;
                            }
                        }

                        function initData() {
                            var query = {
                                page_no: 1,
                                page_size: 50,
                                query: {
                                    store_id: $rootScope.store_id
                                }
                            };
                            // if (zstatus == 'schematypeGet') {
                            //     query = { query: { store_id: $rootScope.store_id } };
                            // }
                            dataService[zstatus](query).then(function(data) {
                                if (data && data.fare_temp) {
                                    $scope.elmAry = [];
                                    _.map(data.fare_temp, function(v, k) {
                                        $scope.elmAry.push({
                                            id: "" + v.fare_id,
                                            name: v.name,
                                            //en: v.name,
                                        });
                                    });
                                }
                                if (data && data.schema_types) {
                                    $scope.elmAry = [];
                                    _.map(data.schema_types, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.schema_type_id,
                                            name: v.name,
                                        });
                                    });
                                }
                                $scope.set($scope.ngModel);
                                // console.log("$scope.elmAry", $scope.elmAry);
                            });

                        }
                        initData();

                        $scope.set = function(id) {
                            $scope.tmpNgModel = {};
                            if (id) {
                                _.map($scope.elmAry, function(a) {
                                    if (a.id == id) {
                                        $scope.tmpNgModel = a;
                                    }
                                });
                            }
                        }
                    }
                ],

                link: function(scope, element, attrs, ctrl) {
                    scope.$watch('ngModel', function(newValue, oldValue, scope) {
                        //console.log("ngModelngModel",newValue);
                        if (newValue) {
                            scope.set(newValue);
                            ctrl.$setViewValue(newValue);
                        }
                    });

                    scope.$watch('tmpNgModel', function(newValue, oldValue, scope) {
                        if (newValue && newValue.id) {
                            ctrl.$setViewValue(newValue.id);
                        }
                    });
                    scope.$watch('elmAry', function(newValue, oldValue, scope) {

                        if (!ctrl.$viewValue && attrs.dft && newValue) {
                            if (newValue[0]) {
                                // console.error("newValue[0]", newValue);
                                scope.tmpNgModel = newValue[0];
                                ctrl.$setViewValue(newValue[0].id);
                                scope.ngModel = newValue[0].id;
                            }
                        }
                        if (attrs.stype) {
                            scope.set(ctrl.$viewValue);
                        }
                        //console.log("商品修改", scope.tmpNgModel);
                    });
                    //处理数据，得到想要 的数据
                    ctrl.$render = function() {
                        if (ctrl.$viewValue) {
                            scope.set(ctrl.$viewValue);
                        }
                    };
                }
            }
        }
    ]);
});
//动态状态查询
var dallstatus = {
    "storeCheck": "storeGet",
    "roleCheck": "roleGet",
};

_.map(dallstatus, function(zstatus, dname) {
    angular.module('webApp').directive(dname, ['dataService', '$compile',
        function(dataService, $compile) {
            return {
                restrict: 'E',
                require: 'ngModel',
                scope: {
                    ngModel: '=',
                },
                templateUrl: "views/directives.select.html",
                controller: ['$templateCache', '$rootScope', '$scope', '$timeout',
                    function($templateCache, $rootScope, $scope, $timeout) {
                        $scope.ngModel = _.isArray($scope.ngModel) ? $scope.ngModel : [];

                        function initData() {
                            var query = {};
                            dataService[zstatus](query).then(function(data) {
                                if (data.store) {
                                    $scope.elmAry = [];
                                    _.map(data.store, function(v, k) {
                                        $scope.elmAry.push({
                                            id: v.store_id,
                                            name: v.name,
                                            code: v.industry_code,
                                            en: v.name,
                                        });
                                    });
                                }
                                if (data.roles) {
                                    $scope.elmAry = [];
                                    _.map(data.roles, function(v, k) {
                                        if (v.name !== "超级管理员") {
                                            $scope.elmAry.push({
                                                id: v.role_id,
                                                name: v.name,
                                                code: v.name,
                                                en: v.name,
                                            });
                                        }
                                    });
                                }
                            });
                        }
                        initData();
                    }
                ],

                link: function(scope, element, attrs, ctrl) {
                    ctrl.$render = function() {
                        if (!ctrl.$viewValue) {
                            scope.ngModel = [];
                        }
                    };
                }
            }
        }
    ]);
});
angular.module('webApp').directive('wxappinfo', ['dataService', '$compile', 'helper', '$timeout', 'dhfprinterService',
    function(dataService, $compile, helper, $timeout, dhfprinterService) {
        return {
            restrict: 'EA',
            require: 'ngModel',
            scope: {
                ngModel: '=',
            },
            template: '<span><span ng-show="ngModel">{{nick_name}}</span>',
            controller: ['$templateCache', '$rootScope', '$scope',
                function($templateCache, $rootScope, $scope) {
                    $scope.initData = function() {
                        wxappGet();
                    }

                    //查询
                    function wxappGet() {
                        var query = {};
                        query.query = {
                            "app_id": $scope.ngModel
                        };
                        dataService.custaccountGet(query).then(function(a) {
                            if (a.cust_account) {
                                $scope.appInfo = a.cust_account[0];
                                $scope.nick_name = $scope.appInfo.nick_name;
                            }
                        });
                    }
                    $scope.initData();
                }
            ],

            link: function(scope, element, attrs, ctrl) {

            }
        }
    }
]);

angular.module('webApp').directive('wxGzhList', ['dataService', '$compile', 'helper', '$timeout', 'dhfprinterService',
    function(dataService, $compile, helper, $timeout, dhfprinterService) {
        return {
            restrict: 'EA',
            scope: {
                wxappid: "=",
                gzhid: "=",
                backcall: "&"
            },
            template: '<span><span ng-show="wxappid">{{nick_name}}</span><span><select ng-model="SelModer" ng-options="author.app_id as author.nick_name for author in authorlist" ></select></span></span>',
            controller: ['$templateCache', '$rootScope', '$scope', 'ERP_CONFIG',
                function($templateCache, $rootScope, $scope, ERP_CONFIG) {
                    $scope.initData = function() {
                        wxappGet().then(function() {
                            $scope.authorlist = [];
                            if ($scope.appInfo) {
                                var query = {};
                                query.query = {
                                    "store_id": $scope.appInfo.store_id,
                                    "principal_name": $scope.appInfo.principal_name,
                                    "service_type_id": 1
                                };

                                dataService.custaccountGet(query).then(function(a) {
                                    if (a) {
                                        _.map(a.cust_account, function(isda) {
                                            if (isda.service_type_id == 1 && isda.app_id != ERP_CONFIG.BackAppId) {
                                                // isda.store_name = dd.name;
                                                $scope.authorlist.push(isda);
                                            }
                                            $scope.SelModer = $scope.authorlist[0].app_id;
                                        });
                                    }
                                });

                                return false;
                            }
                        })
                    }

                    //查询
                    function wxappGet() {
                        var query = {};
                        query.query = {
                            "app_id": $scope.wxappid
                        };
                        // console.error("sdlfksdfsdf", query);

                        return dataService.custaccountGet(query).then(function(a) {
                            if (a.total_count > 0) {
                                return $scope.appInfo = a.cust_account[0];
                            } else {
                                return false;
                            }
                        });
                    }

                    $scope.initData();
                }
            ],

            link: function(scope, element, attrs, ctrl) {

                ctrl.$render = function() {
                    if (ctrl.$viewValue) {
                        scope.wxappid = ctrl.$viewValue;
                        scope.initData();
                    }
                };

                scope.$watch('SelModer', function(newValue, oldValue, scope) {
                    if (newValue && !scope.stype) {

                        if (scope.backcall) {
                            // console.log("sdlkfjsdlfksdflskdjflsdkfjsldkfjsdf");
                            scope.backcall({
                                "app_id": newValue
                            });
                        }
                        scope.gzhid = newValue;

                    }
                });
            }
        }
    }
]);
angular.module('webApp').directive('storePayvalue', ['dataService', '$compile', 'helper', '$timeout', 'dhfprinterService',
    function(dataService, $compile, helper, $timeout, dhfprinterService) {
        return {
            restrict: 'EA',
            scope: {
                cuid: "=",
                callbacks: "&",
            },
            template: '<span ><store-paytype ng-model="payconfig.mch_type_id"  backcall="backcalls(data)" dft="1" > </store-paytype></span>',
            controller: ['$templateCache', '$rootScope', '$scope',
                function($templateCache, $rootScope, $scope) {
                    $scope.initData = function() {
                        dataService.payConfigGet($scope.cuid).then(function(result) {
                            if (result) {
                                $scope.payconfig = result;
                            } else {
                                $scope.payconfig = {};
                            }
                        });
                    }

                    //回调方法
                    $scope.backcalls = function(data) {
                        if ($scope.callbacks) {
                            $scope.callbacks({
                                "data": data
                            });
                        }
                    }
                    $scope.initData();
                }
            ],

            link: function(scope, element, attrs, ctrl) {


            }
        }
    }
]);

angular.module('webApp').directive('provinceCascade', ['dataService', '$compile', 'helper', '$timeout', 'dhfprinterService',
    function(dataService, $compile, helper, $timeout, dhfprinterService) {
        return {
            restrict: 'EA',
            scope: {
                ngModel: '=',
                cityName: '=',
                districtName: '=',
                backcall: '&'
            },
            template: '<span><select ng-model="tmpNgModel" ng-options="option.name for option in elmAry track by option.id" style="max-width:100px;" ng-change="changeProvince();"> </select><select ng-show="cityNgModel" ng-model="cityNgModel" ng-options="option.name for option in cityAry track by option.id" style="max-width:100px;" ng-change="changeCity();"> </select><select ng-show="districtNgModel" ng-model="districtNgModel" ng-options="option.name for option in districtAry track by option.id" style="max-width:100px;"> </select></span>',
            controller: ['$templateCache', '$rootScope', '$scope',
                function($templateCache, $rootScope, $scope) {
                    $scope.initData = function() {
                        var query = {
                            query: {
                                parent_id: 0
                            },
                            page_size: 35
                        };
                        dataService.areaGet(query).then(function(result) {
                            if (result.areas) {
                                $scope.elmAry = [];
                                _.map(result.areas, function(v, k) {
                                    $scope.elmAry.push({
                                        id: v.area_id,
                                        name: v.area,
                                        en: v.area,
                                    })
                                });
                                $scope.elmAry.unshift({
                                    id: -1,
                                    name: "请选择省份",
                                    en: "choose province"
                                });

                                $scope.set($scope.ngModel);
                            }
                        });
                    }

                    $scope.initData();

                    $scope.set = function(dd) {
                        $scope.tmpNgModel = {};
                        _.map($scope.elmAry, function(a) {
                            if (dd == a.name) {
                                $scope.tmpNgModel = a;
                            }
                        });
                        if (dd) {
                            $scope.changeProvince();
                        }
                    }

                    $scope.changeProvince = function() {
                        if ($scope.tmpNgModel.id > -1) {
                            var query = {
                                query: {
                                    parent_id: $scope.tmpNgModel.id
                                },
                                page_size: 100
                            };
                            dataService.areaGet(query).then(function(result) {
                                if (result.areas) {
                                    $scope.cityAry = [];
                                    _.map(result.areas, function(v, k) {
                                        $scope.cityAry.push({
                                            id: v.area_id,
                                            name: v.area,
                                            en: v.area,
                                        })
                                    });
                                    $scope.cityAry.unshift({
                                        id: -1,
                                        name: "请选择城市",
                                        en: "choose city"
                                    });
                                    $scope.setCity($scope.cityName);
                                }
                            });
                        }
                    }

                    $scope.setCity = function(dd) {
                        $scope.cityNgModel = {};
                        _.map($scope.cityAry, function(a) {
                            if (dd == a.name) {
                                $scope.cityNgModel = a;
                            }
                        });
                        if (dd) {
                            $scope.changeCity();
                        }
                    }

                    $scope.changeCity = function() {
                        if ($scope.cityNgModel.id > -1) {
                            var query = {
                                query: {
                                    parent_id: $scope.cityNgModel.id
                                },
                                page_size: 100
                            };
                            dataService.areaGet(query).then(function(result) {
                                if (result.areas) {
                                    $scope.districtAry = [];
                                    _.map(result.areas, function(v, k) {
                                        $scope.districtAry.push({
                                            id: v.area_id,
                                            name: v.area,
                                            en: v.area,
                                        })
                                    });
                                    $scope.districtAry.unshift({
                                        id: -1,
                                        name: "请选择地区",
                                        en: "choose district"
                                    });
                                    $scope.setDistrictName($scope.districtName);
                                }
                            });
                        }
                    }

                    $scope.setDistrictName = function(dd) {
                        $scope.districtNgModel = {};
                        _.map($scope.districtAry, function(a) {
                            if (dd == a.name) {
                                $scope.districtNgModel = a;
                            }
                        });
                    }
                }
            ],

            link: function(scope, element, attrs, ctrl) {
                scope.$watchGroup(['tmpNgModel', 'cityNgModel', 'districtNgModel'], function(newValue, oldValue, scope) {
                    if (newValue && newValue[0] && newValue[0].id && newValue[1] && newValue[1].id && newValue[2] && newValue[2].id) {
                        if (scope.backcall) {
                            scope.backcall({
                                "city": newValue
                            });
                        }
                    }
                });
            }
        }
    }
]);